Function at 0x10031dd3
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push edi
push str._nReposition_Controls
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
cmp dword [esi + 0x330], edi
je 0x10032129
lea eax, [ebp - 0x2c]
push eax
lea ebx, [esi + 4]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [esi + 0x335]
test al, al
je 0x10031e15
mov ecx, dword [esi + 0x40]
mov dword [ebp - 8], ecx
jmp 0x10031e18
mov dword [ebp - 8], edi
test al, al
je 0x10031e27
mov eax, dword [esi + 0xd0]
mov dword [ebp - 0xc], eax
jmp 0x10031e2a
mov dword [ebp - 0xc], edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x1f57
push dword [ebx]
call edi
push 1
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [esi + 0x3c]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
movzx eax, byte [esi + 0x335]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1f58
push dword [ebx]
call edi
push 1
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0x24]
push 0
push dword [esi + 0x3c]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
movzx eax, byte [esi + 0x335]
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x9c]
add eax, dword [ebp - 8]
add edx, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0xa0]
push 0x1f4f
push dword [ebx]
add ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov eax, dword [esi + 0x9c]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [esi + 0xfc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
add eax, dword [ebp - 8]
mov ecx, dword [esi + 0xd0]
push 0x1f50
push dword [ebx]
add ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov ecx, dword [ebp - 0x24]
mov eax, ecx
sub eax, dword [esi + 0xfc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x100]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0xc]
push 0x1f51
add eax, dword [ebp - 8]
push dword [ebx]
add ecx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov ecx, dword [esi + 0xa0]
sub ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
add ecx, dword [ebp - 8]
push 0x1f52
push dword [ebx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x12c]
add ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x190]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov ecx, dword [esi + 0x15c]
mov edx, dword [esi + 0xa0]
mov eax, dword [ebp - 0x24]
sub edx, dword [ebp - 0xc]
sub eax, ecx
add edx, dword [ebp - 0x28]
add ecx, eax
add edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x1f0]
push 0x1f56
push dword [ebx]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov edx, ecx
sub edx, dword [esi + 0x190]
push 0x1f53
push dword [ebx]
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0x18c]
add edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov eax, dword [esi + 0x18c]
add eax, dword [ebp - 0x2c]
push 0x1f54
push dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
sub ecx, dword [esi + 0x1c0]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
sub ecx, dword [esi + 0x1ec]
mov dword [ebp - 0x14], ecx
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
mov ecx, dword [esi + 0x1ec]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub edx, dword [esi + 0x1f0]
sub eax, ecx
add ecx, eax
push 0x1f55
push dword [ebx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
call fcn.10004120
cmp dword [esi + 0x358], 0
je 0x10032129
mov eax, dword [esi + 0x12c]
add eax, dword [ebp - 0x2c]
mov edi, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xa0]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [esi + 0x15c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x1c0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
call fcn.10004102
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 1
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov eax, dword [esi + 0x358]
push dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop ebx
leave
ret