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

Disassembly:
sub esp, 0x1a8
push ebx
push ebp
push esi
push edi
mov ecx, 0x1a
mov esi, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov ecx, eax
mov ebp, dword [esp + 0x1bc]
and ecx, 0xffff
lea edi, [esp + 0xf2]
shr eax, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov ecx, 0x31
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_GetWindow]
mov word [esp + 0xf0], 0
rep stosd dword es:[edi], eax
push 5
push ebp
stosw word es:[edi], ax
call esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
je 0x40345a
lea edx, [esp + 0xf0]
push 0x63
push edx
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0xf0]
push 0x4622dc
push eax
call fcn.00433074
add esp, 8
test eax, eax
je 0x403449
push 0
push 0
push 0x31
push edi
call ebx
test eax, eax
jne 0x403456
push 2
push edi
call esi
mov edi, eax
test edi, edi
jne 0x403412
jmp 0x40345a
test edi, edi
jne 0x40345c
mov edi, ebp
push 0
push 0
push 0x31
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x40348f
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c0]
push ecx
push edx
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x4039a3
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call esi
mov dword [esp + 0x30], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x84]
push edx
push eax
call fcn.00432a93
add esp, 4
lea ecx, [esp + 0x88]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
test eax, eax
jne 0x4034ec
mov edx, dword [esp + 0x30]
push edx
push ebx
call esi
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4039a3
mov ecx, dword [esp + 0x20]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 3
mov eax, edx
mov ecx, dword [esp + 0x24]
shr eax, 0x1f
mov dword [esp + 0x2c], ecx
lea eax, [edx + eax + 1]
cdq
sub eax, edx
mov edx, dword [esp + 0x1c0]
sar eax, 1
push edx
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
call esi
lea eax, [esp + 0x28]
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.00432a93
add esp, 4
lea edx, [esp + 0x88]
push eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
test eax, eax
jne 0x403580
mov eax, dword [esp + 0x30]
push eax
push ebx
call esi
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c0]
push ecx
push edx
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov ecx, dword [esp + 0x28]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 3
mov eax, edx
mov ecx, dword [esp + 0x30]
shr eax, 0x1f
push ecx
push ebx
lea eax, [edx + eax + 1]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
call esi
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x4035ec
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x4035ec
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c0]
push ecx
push edx
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
mov al, byte [esp + 0x1c8]
test al, al
mov dword [esp + 0x58], esi
jne 0x4036a7
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push ecx
push edx
sub eax, dword [esp + 0x18]
push eax
call edi
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
add eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push ecx
sub eax, ebx
push edx
push eax
call edi
add eax, dword [esp + 0x14]
test esi, 0x40000000
mov dword [esp + 0x1c], eax
je 0x403677
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00403150
add esp, 8
push ebp
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4036ad
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub edx, eax
push 0x14
push edx
mov edx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
push ecx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4036ad
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 5
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x403811
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.00403150
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
sub eax, edx
sub ecx, esi
add esp, 8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x40], edx
mov ebp, esi
call edi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push edx
push eax
push ecx
call edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebp
add esi, ecx
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
push ecx
push edx
push eax
call edi
mov cl, byte [esp + 0x1c4]
mov ebp, eax
mov eax, dword [esp + 0x38]
add ebp, eax
test cl, cl
je 0x4037bd
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0xf0]
push 0x63
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xf4]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0xf0]
push str.Static
push edx
call fcn.00432f95
add esp, 8
test eax, eax
jne 0x4037b3
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x1f
cmp eax, 3
je 0x4037d4
cmp eax, 0xe
je 0x4037d4
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub ebp, eax
push 0
sub esi, ecx
push ebp
push esi
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x4037f3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0x15
push 0
push 0
push eax
push ecx
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, dword [esp + 0x1bc]
mov ebx, eax
test ebx, ebx
jne 0x4036c0
mov esi, dword [esp + 0x58]
test esi, 0x40000000
je 0x40383d
mov edx, dword [esp + 0x1cc]
mov eax, dword [esp + 0x1c0]
push edx
push eax
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push ebp
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x40386c
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c0]
push ecx
push edx
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
push ebp
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
mov dword [esp + 0x5c], 0x28
je 0x403884
push 2
push eax
jmp 0x403887
push 1
push ebp
call fcn.0042afce
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.0042b039
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
test esi, 0x800
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
je 0x403940
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, ebx
mov esi, dword [esp + 0x18]
sub eax, edi
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, esi
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x54]
add ecx, edi
mov edi, ecx
sub edi, edx
mov edx, dword [esp + 0x4c]
sub eax, edx
add edi, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x20]
sub eax, edx
sub edi, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x4c]
add esi, eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x20]
add eax, edx
sub eax, esi
push eax
push edi
push esi
push ecx
push ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
jle 0x403970
sub ebx, eax
mov eax, edx
add ebx, eax
mov edx, ebx
cmp edx, edi
jge 0x403976
mov edx, edi
mov eax, dword [esp + 0x50]
cmp esi, eax
jle 0x403988
mov ecx, dword [esp + 0x14]
sub eax, esi
add eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x48]
cmp ecx, eax
jge 0x403992
mov ecx, eax
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
push edx
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x1cc]
mov ecx, dword [esp + 0x1c0]
push eax
push ecx
push ebp
call fcn.004032e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret