Function at 0x100021c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
push ebx
mov ebx, dword [0x100082e0]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [0x100082c4], edi
mov dword [0x100082cc], edi
mov dword [ebp + 0x24], ebx
jne 0x100021fe
push edi
call fcn.10001060
push str.error_finding_mainwnd
jmp 0x10002ad3
mov eax, dword [0x100082bc]
cmp eax, edi
je 0x10002ac8
mov eax, dword [eax]
cmp eax, edi
je 0x10002ac8
add eax, 4
cmp eax, edi
mov dword [0x100082f8], eax
je 0x10002ac8
cmp word [eax], di
je 0x10002ac8
call fcn.10001e61
test eax, eax
je 0x10002ac8
push dword [0x10008320]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
call esi
cmp eax, edi
mov dword [ebp + 0x50], eax
jne 0x10002261
push edi
call fcn.10001060
push str.error_finding_childwnd
jmp 0x10002ad3
push 2
push ebx
call esi
push 1
push ebx
mov dword [0x100082e4], eax
call esi
push 3
push ebx
mov dword [0x100082e8], eax
call esi
push dword [0x10008300]
mov dword [0x100082ec], eax
push dword [0x100082e4]
call fcn.100010f9
push dword [0x10008304]
push dword [0x100082e8]
call fcn.100010f9
push dword [0x10008308]
push dword [0x100082ec]
call fcn.100010f9
mov eax, dword [0x1000830c]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
je 0x100022cb
push eax
push dword [0x100082ec]
call esi
mov eax, dword [0x10008310]
cmp eax, 0xffffffff
je 0x100022ff
push eax
push dword [0x100082e4]
call esi
cmp dword [0x10008310], edi
je 0x100022e9
push edi
jmp 0x100022eb
push 1
push 0xf060
push edi
push ebx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x10008314]
cmp eax, 0xffffffff
je 0x10002322
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x100082e4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x100082d4], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x31
push ebx
call esi
push edi
push 0x1000183c
push ebx
push 0x65
push dword [0x100082f0]
mov dword [ebp + 0x28], eax
mov dword [0x100042b0], 1
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, edi
mov dword [0x100082dc], eax
je 0x10002abb
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp + 0x54]
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp + 0x60]
sub ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x54]
push 0x14
push ecx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x38], eax
push dword [ebp + 0x54]
mov dword [ebp + 0x2c], ecx
push edi
push dword [0x100082dc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [ebp + 0x28]
push 0x30
push dword [0x100082dc]
call esi
cmp dword [0x10008324], edi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x3c], edi
jle 0x10002a6b
mov ebx, dword [ebp + 0x3c]
imul ebx, ebx, 0x54
add ebx, dword [0x1000831c]
mov eax, dword [ebx + 0x20]
cmp eax, 1
jl 0x10002a53
cmp eax, 0x10
jg 0x10002a53
imul eax, eax, 0x14
cmp dword [0x10008318], 0
je 0x10002401
mov ecx, dword [eax + 0x10004164]
mov eax, dword [eax + 0x1000416c]
jmp 0x1000240d
mov ecx, dword [eax + 0x10004160]
mov eax, dword [eax + 0x10004168]
lea esi, [ebx + 0x24]
lea edi, [ebp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x68], eax
lea eax, [ebp + 0x54]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 0x24]
mov dword [ebp + 0x74], ecx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_MapDialogRect]
cmp dword [ebx + 0x24], 0
jge 0x10002436
mov eax, dword [ebp + 0x38]
add dword [ebp + 0x54], eax
xor edi, edi
cmp dword [ebx + 0x2c], edi
jge 0x10002443
mov eax, dword [ebp + 0x38]
add dword [ebp + 0x5c], eax
cmp dword [ebx + 0x28], edi
jge 0x1000244e
mov eax, dword [ebp + 0x2c]
add dword [ebp + 0x58], eax
cmp dword [ebx + 0x30], edi
jge 0x10002459
mov eax, dword [ebp + 0x2c]
add dword [ebp + 0x60], eax
cmp dword [0x10008318], edi
je 0x10002475
mov ecx, dword [ebp + 0x38]
sub ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x5c], ecx
mov ecx, dword [ebp + 0x38]
sub ecx, eax
mov dword [ebp + 0x54], ecx
mov eax, dword [ebx + 0x20]
cmp eax, 0xe
mov esi, dword [ebx]
jg 0x10002509
cmp eax, 0xc
jge 0x100024b0
cmp eax, 4
jl 0x10002531
cmp eax, 5
jle 0x10002505
add eax, 0xfffffff6
cmp eax, 1
ja 0x10002531
mov eax, dword [ebx + 0x34]
and eax, 0x20
xor dword [ebp + 0x74], eax
jmp 0x10002531
mov eax, dword [ebx + 0x34]
test al, 0x40
je 0x100024bb
or dword [ebp + 0x74], 0x20
test al, al
jns 0x100024c6
or dword [ebp + 0x74], 0x2000
test ax, 0x400
je 0x100024d3
or dword [ebp + 0x74], 0x1000
test al, 0x10
je 0x100024de
or dword [ebp + 0x74], 0x800
test ax, 0x100
mov esi, dword [ebx + 4]
je 0x10002531
or dword [ebp + 0x74], 0x44
test eax, 0x100200
jne 0x100024f9
and dword [ebp + 0x74], 0xffffff7f
push esi
call fcn.10001df1
test byte [ebx + 0x34], 0x10
je 0x10002531
xor esi, esi
jmp 0x10002531
sub eax, 0xf
je 0x1000251b
dec eax
jne 0x10002531
mov eax, dword [ebx + 0x34]
and eax, 0x809
jmp 0x1000252e
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 4]
and eax, 0x4000
or eax, 0x8000
shr eax, 0xe
or dword [ebp + 0x74], eax
mov eax, dword [ebx + 0x34]
mov ecx, eax
and ecx, 0x8320000
or dword [ebp + 0x74], ecx
test eax, 0x10000
je 0x1000254d
and dword [ebp + 0x74], 0xfffeffff
mov eax, dword [ebp + 0x60]
sub eax, dword [ebp + 0x58]
push 0
push dword [0x100082f0]
push dword [ebx + 0x3c]
push dword [0x100082dc]
push eax
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x54]
push eax
push dword [ebp + 0x58]
mov eax, dword [ebx + 0x20]
push dword [ebp + 0x54]
imul eax, eax, 0x14
push dword [ebp + 0x74]
push esi
push dword [eax + 0x1000415c]
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push dword [ebx + 0x48]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
lea eax, [ebp - 0x130]
push str.Field__d
push eax
mov dword [ebp + 0x70], esi
mov dword [ebx + 0x38], esi
call edi
push esi
lea eax, [ebp - 0xb0]
push 0x10003168
push eax
call edi
add esp, 0x18
push dword [0x100082f8]
lea eax, [ebp - 0xb0]
push eax
push dword [ebx + 0x4c]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x10002a53
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [ebp + 0x28]
push 0x30
push esi
call edi
mov eax, dword [ebx + 0x20]
cmp eax, 0xb
jg 0x1000287b
cmp eax, 0xa
jge 0x1000285b
cmp eax, 4
jl 0x100029f5
cmp eax, 5
jle 0x10002633
cmp eax, 7
jne 0x100029f5
push 0x10001988
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [ebx + 0x40], eax
jmp 0x100029f5
xor ecx, ecx
cmp eax, 5
setne cl
mov dword [ebp + 0x68], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x1000267f
mov eax, dword [ebx + 0x34]
mov esi, dword [ebp + 0x60]
sub esi, dword [ebp + 0x58]
and eax, 0x8000
mov edx, eax
neg edx
sbb edx, edx
push 0x10
and edx, esi
push edx
mov edx, dword [ebp + 0x5c]
sub edx, dword [ebp + 0x54]
neg eax
sbb eax, eax
and eax, edx
push eax
push dword [ebp + 0x68]
push ecx
push dword [0x100082f0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx + 0x44], eax
jmp 0x10002690
push 0x67
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
test byte [ebx + 0x34], 0x20
mov dword [ebp + 0x48], eax
je 0x100027f9
cmp dword [ebp + 0x68], 0
jne 0x100027f9
lea eax, [ebp + 0xc]
push eax
push 0x18
push dword [ebp + 0x48]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x100027f9
mov eax, dword [ebp + 0x14]
imul eax, dword [ebp + 0x10]
shl eax, 2
push eax
call fcn.10001041
test eax, eax
mov dword [ebp + 0x64], eax
je 0x100027f9
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push esi
mov word [ebp - 0x22], 0x20
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], 1
mov dword [ebp - 0x30], 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x48]
mov dword [ebp + 0x50], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x48]
push dword [ebp + 0x50]
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x64]
mov esi, dword [eax]
mov eax, dword [ebp + 0x14]
and esi, 0xffffff
dec eax
mov dword [ebp + 0x4c], eax
js 0x100027d3
mov eax, dword [ebp + 0x10]
and dword [ebp + 0x6c], 0
test eax, eax
jle 0x100027ce
mov ecx, dword [ebp + 0x64]
mov ecx, dword [ecx]
and ecx, 0xffffff
cmp ecx, esi
jne 0x100027bf
mov ecx, dword [ebp + 0x6c]
cmp ecx, eax
jge 0x10002790
mov edx, dword [ebp + 0x64]
mov edx, dword [edx]
and edx, 0xffffff
cmp edx, esi
jne 0x10002790
add dword [ebp + 0x64], 4
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x6c], eax
jl 0x10002775
mov eax, dword [ebp + 0x4c]
lea edx, [eax + 1]
push edx
push dword [ebp + 0x6c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 3
push eax
push dword [ebp + 0x40]
mov dword [ebp + 0x44], eax
push dword [ebp + 0x40]
call dword [sym.imp.GDI32.dll_CombineRgn]
push dword [ebp + 0x44]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100027c6
add dword [ebp + 0x64], 4
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x6c], eax
jl 0x1000275f
dec dword [ebp + 0x4c]
jns 0x10002754
push 1
push dword [ebp + 0x40]
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [ebp + 0x40]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp + 0x50]
call esi
push dword [ebp + 0x64]
call fcn.10001050
push dword [ebp + 0x48]
push dword [ebp + 0x68]
push 0x172
push dword [ebp + 0x70]
call edi
cmp dword [ebx + 0x20], 5
jne 0x100029f5
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 4]
push 0x15
add eax, dword [ebp + 0x54]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 0x60]
sub eax, dword [ebp + 8]
sar ecx, 1
add eax, dword [ebp + 0x58]
mov dword [ebp - 4], ecx
cdq
sub eax, edx
xor edx, edx
push edx
push edx
sar eax, 1
push eax
push ecx
push edx
push dword [ebp + 0x70]
mov dword [ebp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x100029f5
mov eax, dword [ebx + 4]
cmp word [eax], 0x31
jne 0x100029f5
push 0
push 1
push 0xf1
push dword [ebp + 0x70]
call edi
jmp 0x100029f5
cmp eax, 0xc
jl 0x100029f5
cmp eax, 0xe
jle 0x100029c0
cmp eax, 0x10
jg 0x100029f5
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x100029f5
cmp eax, 0xf
jne 0x100028bd
mov dword [ebp + 0x50], 0x143
mov dword [ebp + 0x68], 0x158
mov dword [ebp + 0x4c], 0x14e
jmp 0x100028d2
mov dword [ebp + 0x50], 0x180
mov dword [ebp + 0x68], 0x1a2
mov dword [ebp + 0x4c], 0x186
push ecx
call fcn.10001093
cmp word [eax], 0
mov dword [ebp + 0x44], eax
mov esi, eax
mov dword [ebp + 0x6c], eax
je 0x1000291a
cmp word [esi], 0x7c
jne 0x1000290b
mov eax, dword [ebp + 0x6c]
and word [esi], 0
cmp word [eax], 0
je 0x10002904
push eax
push 0
push dword [ebp + 0x50]
push dword [ebp + 0x70]
call edi
inc esi
inc esi
mov dword [ebp + 0x6c], esi
jmp 0x10002914
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0
jne 0x100028e6
push dword [ebp + 0x44]
call fcn.10001050
mov eax, dword [ebx + 4]
test eax, eax
je 0x100029f5
test word [ebx + 0x34], 0x808
je 0x100029a5
cmp dword [ebp + 0x68], 0x1a2
jne 0x100029a5
push 0xffffffffffffffff
push 0
push 0x185
push dword [ebp + 0x70]
call edi
mov esi, dword [ebx + 4]
mov dword [ebp + 0x6c], esi
movzx eax, word [esi]
cmp ax, 0x7c
mov dword [ebp + 0x44], eax
je 0x1000296e
test ax, ax
je 0x1000296e
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x10002952
mov eax, dword [ebp + 0x6c]
and word [esi], 0
cmp word [eax], 0
je 0x1000299a
push eax
push 0xffffffffffffffff
push 0x1a2
push dword [ebp + 0x70]
call edi
cmp eax, 0xffffffff
je 0x1000299a
push eax
push 1
push 0x185
push dword [ebp + 0x70]
call edi
cmp word [ebp + 0x44], 0
je 0x100029f5
inc esi
inc esi
jmp 0x1000294f
push eax
push 0xffffffffffffffff
push dword [ebp + 0x68]
push dword [ebp + 0x70]
call edi
cmp eax, 0xffffffff
je 0x100029f5
push 0
push eax
push dword [ebp + 0x4c]
jmp 0x10002871
push 0
push dword [ebx + 0x1c]
push 0xc5
push dword [ebp + 0x70]
call edi
test word [ebp + 0x74], 0x2000
je 0x100029f5
push 0xfffffffffffffffc
push dword [ebp + 0x70]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x10001a8e
push 0xfffffffffffffffc
push dword [ebp + 0x70]
mov dword [ebx + 0x50], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor ecx, ecx
cmp dword [ebp + 0x30], ecx
jne 0x10002a3a
mov eax, dword [ebp + 0x74]
and eax, 0x8010000
cmp eax, 0x10000
jne 0x10002a3a
cmp dword [ebx + 0x20], 0xa
jl 0x10002a3a
test dword [ebx + 0x34], 0x10000000
je 0x10002a21
mov dword [ebp + 0x30], 1
cmp dword [ebp + 0x34], ecx
je 0x10002a2b
cmp dword [ebp + 0x30], ecx
je 0x10002a3a
push dword [ebp + 0x70]
mov dword [ebp + 0x34], 1
call fcn.100010e2
mov ecx, dword [ebx + 0x34]
mov eax, 0x110
and ecx, eax
cmp ecx, eax
jne 0x10002a53
push dword [ebx + 4]
push dword [ebp + 0x70]
call fcn.100010f9
inc dword [ebp + 0x3c]
mov eax, dword [ebp + 0x3c]
cmp eax, dword [0x10008324]
jl 0x100023c6
cmp dword [ebp + 0x34], 0
jne 0x10002a76
push dword [0x100082e8]
call fcn.100010e2
push dword [0x100082fc]
push dword [ebp + 0x24]
call fcn.100010f9
mov eax, dword [0x100082bc]
mov ecx, dword [eax]
mov dword [0x100082f4], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [eax], ecx
push dword [0x100082dc]
mov esi, 0x10008598
push 0x10003168
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push esi
call fcn.10001000
xor eax, eax
jmp 0x10002adb
push edi
call fcn.10001060
push str.error_creating_dialog
jmp 0x10002ad3
push edi
call fcn.10001060
push str.error_finding_config
call fcn.10001000
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret