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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442beb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edi
mov word [esp + 0x94], cx
mov dword [esp + 0x128], edi
xor edx, edx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], edi
mov word [esp + 0xe0], dx
mov dword [esp + 0x110], eax
xor eax, eax
mov dword [esp + 0x10c], edi
mov word [esp + 0xfc], ax
mov byte [esp + 0x128], 2
mov eax, dword [0x457d08]
call fcn.004096d0
test al, al
je 0x4056cf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
push 0x1e
push 0x5a
push edi
push edi
push 0x90000000
push str.Exit
push str.Button
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x38], eax
cmp dword [esi + 0x38], edi
je 0x405727
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0xb0]
push edx
push eax
call ebx
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0xc0]
push ecx
push edx
call ebx
mov eax, dword [esp + 0xc4]
sub eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xb4]
push 0x15
push edi
push edi
lea edx, [eax + ecx - 0xe]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esi + 0x38]
push edx
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call fcn.00405060
lea edx, [esp + 0x94]
push edx
mov ecx, 0x1ff9
mov edx, 0x457d28
call fcn.00418a80
mov eax, dword [esp + 0x94]
mov edi, 8
cmp dword [esp + 0xa8], edi
jae 0x405760
lea eax, [esp + 0x94]
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 4]
push 0x458
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0xd0]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xd8]
sub esi, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x94]
push eax
mov ecx, 0x1f40
mov edx, 0x457d28
mov dword [esp + 0x1c], 6
call fcn.00418a80
cmp dword [esp + 0xa8], edi
jb 0x4057f0
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], ecx
jmp 0x4057fb
lea edx, [esp + 0x94]
mov dword [esp + 0x24], edx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
imul ecx, ecx, 0x46
mov eax, 0x51eb851f
imul ecx
sar edx, 5
lea ecx, [esp + 0x18]
push ecx
mov eax, edx
push 0
shr eax, 0x1f
push 0x1061
add eax, edx
push ebx
mov dword [esp + 0x30], eax
call edi
lea edx, [esp + 0x94]
push edx
mov ecx, 0x1f63
mov edx, 0x457d28
call fcn.00418a80
cmp dword [esp + 0xa8], 8
jb 0x405858
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], eax
jmp 0x405863
lea ecx, [esp + 0x94]
mov dword [esp + 0x24], ecx
mov ecx, esi
shl ecx, 4
sub ecx, esi
add ecx, ecx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
lea ecx, [esp + 0x18]
push ecx
mov eax, edx
push 1
shr eax, 0x1f
push 0x1061
add eax, edx
push ebx
mov dword [esp + 0x30], eax
call edi
push 0x34
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00435c00
mov eax, dword [0x457d08]
add eax, 0x188
mov dword [esp + 0x44], 1
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov esi, dword [eax]
add esp, 0xc
cmp esi, eax
je 0x40596e
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x4058d1
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x104d
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], 0
call edi
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x28]
add eax, 0x38
cmp dword [eax + 0x14], 8
jb 0x405904
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
jmp 0x405908
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x104c
push ebx
mov dword [esp + 0x50], 1
call edi
cmp byte [esi + 0x2d], 0
jne 0x405962
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x405944
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x405962
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x405938
jmp 0x405962
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x405960
lea ecx, [ecx]
cmp esi, dword [eax + 8]
jne 0x405960
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x405950
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx]
jne 0x4058c3
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 0x28]
or ecx, 0xffffffff
add ebx, 0x24
xor eax, eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov ecx, 8
lea edx, [esp + 0x6c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x70], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], ecx
cmp edx, edi
jae 0x405a12
mov eax, dword [ebx]
mov ecx, edx
cmp eax, ecx
ja 0x405a12
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x4059f0
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
xor esi, esi
lea eax, [eax + edx*8]
cmp edi, esi
je 0x405a0c
mov ecx, 0xa
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
add dword [ebx + 4], 0x28
jmp 0x405a36
cmp edi, dword [ebx + 8]
jne 0x405a1e
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
test edi, edi
je 0x405a30
mov ecx, 0xa
lea esi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
xor esi, esi
mov edi, dword [ebx + 4]
mov eax, 8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], 0x458
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x80], 1
mov dword [esp + 0x90], eax
cmp ecx, edi
jae 0x405abd
mov eax, dword [ebx]
mov edx, ecx
cmp eax, edx
ja 0x405abd
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x405aac
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
lea eax, [esi + esi*4]
lea esi, [ecx + eax*8]
test edi, edi
je 0x405adb
jmp 0x405ad4
cmp edi, dword [ebx + 8]
jne 0x405ac9
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x405adb
lea esi, [esp + 0x6c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x10]
add dword [ebx + 4], 0x28
mov ebx, dword [edx + 4]
mov edi, dword [esp + 0x14]
call fcn.0041a450
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0xa8], 8
jb 0x405b1b
mov edx, dword [esp + 0x94]
push edx
call fcn.0042c691
add esp, 4
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret