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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d8
call fcn.004131b0
push esi
push edi
push dword [ebx + 0x10]
mov dword [esp + 0x44], 0x320
mov dword [esp + 0x14], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x40320e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call esi
push 0x5a
push edi
call esi
push edi
push dword [ebx + 0x10]
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 2
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push 9
mov edx, eax
pop ecx
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
push eax
push edx
mov dword [esp + 0xa8], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x403271
mov eax, dword [esp + 0x10]
imul eax, eax, 0x46
cdq
push 0x60
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0xb0]
sub eax, ecx
sub eax, dword [esp + 0xa8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
shl eax, 2
push 0x60
cdq
pop ecx
idiv ecx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [ebx + 0x10]
mov dword [ebx + 0x98], eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x2dc]
mov dword [esp + 0x50], eax
call esi
push 0x3e8
push dword [ebx + 0x10]
mov edi, eax
call esi
lea esi, [ebx + 0x8c]
cmp dword [esi], 0
mov dword [esp + 0x14], eax
jne 0x4032d2
push 1
push 9
call fcn.0040154a
push eax
push str.Arial
mov eax, esi
call fcn.00401596
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edi
call esi
push 0xfffffffffffffff0
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
call esi
push 0xffffffffffffffec
push edi
mov dword [esp + 0x4c], eax
call esi
push 0xffffffffffffffec
push dword [esp + 0x18]
mov dword [esp + 0x84], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x6c]
push eax
push edi
call esi
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call esi
lea eax, [esp + 0x6c]
push eax
mov eax, ebx
call fcn.00403028
lea eax, [esp + 0x4c]
push eax
mov eax, ebx
call fcn.00403028
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x74]
sub edi, dword [esp + 0x6c]
and dword [esp + 0x20], 0
and dword [esp + 0x14], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
lea esi, [ebx + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
call fcn.004010d8
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x403474
push dword [ebx + 0x8c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [ecx + 0x2d8], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], esi
jle 0x40344c
mov eax, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x38], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x4033d1
sub eax, dword [esp + 0x38]
lea edx, [esp + 0x5c]
push edx
sar eax, 1
push eax
push ecx
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40342c
mov eax, dword [esp + 0x10]
imul eax, eax, 6
cdq
push 0x60
pop ecx
idiv ecx
add eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x28]
jle 0x403411
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
imul eax, eax, 0xa
cdq
push 0x60
pop ecx
idiv ecx
add eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x18]
jle 0x40342c
mov dword [esp + 0x18], eax
inc dword [esp + 0x24]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x24]
add dword [esp + 0xc], 0x14
cmp ecx, dword [eax + 0x2d8]
jl 0x4033c2
mov eax, dword [esp + 0x18]
push dword [esp + 0x3c]
sub eax, edi
push dword [esp + 0x20]
sub dword [esp + 0x3c], eax
add dword [esp + 0x54], eax
add edi, eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x2d8], esi
mov dword [esp + 0xc], esi
jle 0x403640
mov ecx, dword [esp + 0x2c]
mov eax, 0x10000000
or ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x44]
or ecx, eax
mov eax, dword [esp + 0x10]
imul eax, eax, 0x64
mov dword [esp + 0x44], ecx
cdq
push 0x60
pop ecx
idiv ecx
mov ecx, dword [esp + 0x40]
sub ecx, eax
mov eax, dword [esp + 0x48]
add eax, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
jmp 0x4034c8
mov edi, dword [esp + 0x24]
push dword [esp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
push dword [esp + 0x68]
mov eax, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x28]
add eax, edi
push eax
push dword [esp + 0x78]
push dword [esp + 0x3c]
push str.STATIC
push dword [esp + 0x94]
push ebx
call fcn.00411a79
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x94]
imul eax, dword [esp + 0x28]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x58]
add edi, eax
push edi
push dword [esp + 0x58]
push dword [esp + 0x54]
push 0x414c88
push dword [esp + 0x48]
push ebx
call fcn.00411a79
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
lea esi, [ebx + 0x8c]
push dword [esi]
mov dword [esp + 0x44], eax
push 0x30
push dword [esp + 0x28]
call edi
push 0
push dword [esi]
mov esi, dword [esp + 0x44]
push 0x30
push esi
call edi
mov eax, dword [esp + 0x18]
push dword [eax]
lea eax, [esp + 0xdc]
push 0x415de0
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 0x10
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x20]
call edi
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
lea edx, [esp + 0x2d8]
push edx
push dword [esp + 0x10]
call dword [eax]
push eax
push esi
call edi
mov eax, dword [ebx + 0x94]
imul eax, dword [esp + 0x28]
add eax, dword [ebx + 0x98]
lea edi, [ebx + 0x48]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], esi
mov esi, dword [edi + 0xc]
test esi, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
jl 0x40360f
cmp esi, 0xffffffff
mov eax, dword [edi + 8]
jne 0x4035e6
push dword [edi]
call sub.msvcrt.dll_free
jmp 0x4035f4
push eax
push 0xc
lea eax, [edi + 4]
mov edx, esi
call fcn.0040c853
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0x54], eax
pop ecx
jge 0x403600
mov dword [ebx + 0x54], eax
mov edi, esi
imul edi, edi, 0xc
add edi, dword [ebx + 0x48]
lea esi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jl 0x403622
and dword [esp + 0x20], 0
inc dword [esp + 0x14]
inc dword [esp + 0xc]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0xc]
add dword [esp + 0x18], 0x14
xor esi, esi
cmp ecx, dword [eax + 0x2d8]
jl 0x4034c4
mov eax, dword [esp + 0x14]
mov edi, ebx
mov dword [ebx + 0x9c], esi
mov dword [ebx + 0xa0], eax
call fcn.00402f9e
push 1
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x80]
push ecx
push eax
mov dword [esp + 0x38], eax
call edi
lea eax, [esp + 0x80]
push eax
mov eax, ebx
call fcn.00403028
lea eax, [esp + 0xc8]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x90]
push eax
push dword [ebx + 0x10]
call edi
mov ecx, dword [ebx + 0xa0]
cmp ecx, esi
mov eax, dword [esp + 0x40]
jne 0x4036c3
mov eax, dword [esp + 0x10]
imul eax, eax, 0x50
cdq
push 0x60
pop edi
idiv edi
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x90]
mov edi, 0x204
inc edx
cmp ecx, esi
jne 0x4036f9
push 0x206
push eax
push edx
push esi
push esi
push esi
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
mov eax, ebx
call fcn.00411cab
jmp 0x403742
cmp dword [esp + 0xb0], esi
je 0x40372f
push edi
push eax
mov eax, dword [esp + 0xb0]
add eax, 0xa
push edx
push eax
mov eax, dword [esp + 0xbc]
sub eax, dword [esp + 0xb4]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0xb4]
push eax
jmp 0x403738
push 0x206
push eax
push edx
push esi
push esi
push esi
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x90]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x8c]
sub eax, ecx
inc eax
push edi
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x88]
inc eax
push eax
mov eax, dword [esp + 0x1c]
imul eax, eax, 5
push 0x60
pop edi
cdq
idiv edi
sub ecx, eax
sub ecx, dword [esp + 0x98]
mov eax, dword [esp + 0xa8]
sub ecx, dword [esp + 0xa0]
lea eax, [ecx + eax - 1]
push eax
push dword [esp + 0x90]
push esi
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov esp, ebp
pop ebp
ret