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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442b98
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
mov dword [esp + 0xf8], ebx
mov eax, dword [0x457d08]
call fcn.004096d0
test al, al
je 0x405d66
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esi + 4]
push eax
push ebx
push ecx
push 0x1e
push 0x5a
push ebx
push ebx
push 0x90000000
push str.Exit
push str.Button
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x38], eax
cmp dword [esi + 0x38], ebx
je 0x405dbe
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0xd8]
push edx
push eax
call edi
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0xb4]
push ecx
push edx
call edi
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xdc]
push 0x15
push ebx
push ebx
lea edx, [eax + ecx - 0xe]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esi + 0x38]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call fcn.00405060
lea edx, [esp + 0x98]
push edx
mov ecx, 0x1ff9
mov edx, 0x457d28
call fcn.00418a80
mov eax, dword [esp + 0x98]
mov ebx, 8
cmp dword [esp + 0xac], ebx
jae 0x405df7
lea eax, [esp + 0x98]
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 + 0xc8]
mov edi, eax
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xd0]
sub esi, dword [esp + 0xc8]
xor eax, 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
mov dword [esp + 0x38], eax
lea eax, [esp + 0x98]
push eax
mov ecx, 0x1f40
mov edx, 0x457d28
mov dword [esp + 0x20], 6
call fcn.00418a80
cmp dword [esp + 0xac], ebx
jb 0x405e87
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x405e92
lea edx, [esp + 0x98]
mov dword [esp + 0x28], edx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
imul ecx, ecx, 0x32
mov eax, 0x51eb851f
imul ecx
sar edx, 5
lea ecx, [esp + 0x1c]
push ecx
mov eax, edx
push 0
shr eax, 0x1f
push 0x1061
add eax, edx
push edi
mov dword [esp + 0x34], eax
call ebx
lea edx, [esp + 0x98]
push edx
mov ecx, 0x2058
mov edx, 0x457d28
call fcn.00418a80
cmp dword [esp + 0xac], 8
jb 0x405eef
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], eax
jmp 0x405efa
lea ecx, [esp + 0x98]
mov dword [esp + 0x28], ecx
imul esi, esi, 0x19
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [esp + 0x1c]
push edx
push 1
push 0x1061
push edi
mov dword [esp + 0x34], esi
call ebx
lea eax, [esp + 0x98]
push eax
mov ecx, 0x205d
mov edx, 0x457d28
call fcn.00418a80
cmp dword [esp + 0xac], 8
jb 0x405f4f
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x405f5a
lea edx, [esp + 0x98]
mov dword [esp + 0x28], edx
lea eax, [esp + 0x1c]
push eax
push 1
push 0x1061
push edi
mov dword [esp + 0x34], esi
call ebx
push 0x34
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00435c00
mov eax, dword [0x457d08]
add eax, 0x188
mov dword [esp + 0x48], 1
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov esi, dword [eax]
add esp, 0xc
cmp esi, eax
je 0x4060d3
mov ebx, dword [esi + 0x28]
cmp dword [ebx + 0x68], 8
lea eax, [ebx + 0x54]
jb 0x405fae
mov eax, dword [eax]
push eax
call fcn.00417f40
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0x38]
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [esp + 0xb8], edx
jb 0x405fd0
mov eax, dword [eax]
push eax
call fcn.00417f40
add esp, 4
cmp dword [esp + 0xb8], edx
jl 0x406086
jg 0x405ff5
cmp dword [esp + 0xb4], eax
jbe 0x406086
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x406009
mov edx, dword [eax]
mov dword [esp + 0x50], edx
jmp 0x40600d
mov dword [esp + 0x50], eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x3c]
push eax
push 0
push 0x104d
push edi
mov dword [esp + 0x54], 0
call ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x28]
add eax, 0x38
cmp dword [eax + 0x14], 8
jb 0x406042
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
jmp 0x406046
mov dword [esp + 0x50], eax
lea edx, [esp + 0x3c]
push edx
push 0
push 0x104c
push edi
mov dword [esp + 0x54], 1
call ebx
mov eax, dword [esi + 0x28]
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x40606b
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0x104c
push edi
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], 2
call ebx
cmp byte [esi + 0x2d], 0
jne 0x4060c7
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x4060ac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x4060c7
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x4060a0
jmp 0x4060c7
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x4060c5
cmp esi, dword [eax + 8]
jne 0x4060c5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x4060b5
mov esi, eax
mov edx, dword [esp + 0x18]
cmp esi, dword [edx]
jne 0x405fa0
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x28]
or eax, 0xffffffff
add ebx, 0x24
xor esi, esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x74], 0x50a
mov dword [esp + 0x70], 1
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
cmp eax, edi
jae 0x406177
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
cmp eax, ecx
ja 0x406177
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 0x406159
mov ecx, ebx
call fcn.0041a4a0
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
xor eax, eax
cmp edi, eax
je 0x406171
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
jmp 0x40619b
cmp edi, dword [ebx + 8]
jne 0x406183
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x406195
mov ecx, 0xa
lea esi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
xor eax, eax
mov edi, dword [ebx + 4]
mov ecx, 8
or esi, 0xffffffff
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x74], 6
mov dword [esp + 0x70], 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], eax
mov dword [esp + 0x84], eax
cmp ecx, edi
jae 0x406230
mov edx, dword [ebx]
cmp edx, ecx
ja 0x406230
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x406211
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406227
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
or esi, 0xffffffff
jmp 0x406257
cmp edi, dword [ebx + 8]
jne 0x40623e
mov ecx, ebx
call fcn.0041a4a0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406253
mov ecx, 0xa
lea esi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
or esi, 0xffffffff
add dword [ebx + 4], 0x28
mov edi, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov esi, 8
lea ecx, [esp + 0x70]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x80], 6
mov dword [esp + 0x90], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x94], esi
cmp ecx, edi
jae 0x4062e1
mov edx, dword [ebx]
cmp edx, ecx
ja 0x4062e1
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x4062d0
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406301
jmp 0x4062fa
cmp edi, dword [ebx + 8]
jne 0x4062ef
mov ecx, ebx
call fcn.0041a4a0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406306
lea esi, [esp + 0x70]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, 8
add dword [ebx + 4], 0x28
mov edi, dword [ebx + 4]
xor ecx, ecx
lea edx, [esp + 0x70]
mov dword [esp + 0x74], 0x458
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x7c], 0x50a
mov dword [esp + 0x8c], esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x84], 7
mov dword [esp + 0x94], esi
cmp edx, edi
jae 0x406395
mov eax, dword [ebx]
cmp eax, edx
ja 0x406395
mov ecx, edx
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 0x406384
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 0x4063b5
jmp 0x4063ae
cmp edi, dword [ebx + 8]
jne 0x4063a3
mov ecx, ebx
call fcn.0041a4a0
xor ecx, ecx
mov edi, dword [ebx + 4]
cmp edi, ecx
je 0x4063b5
lea esi, [esp + 0x70]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x14]
add dword [ebx + 4], 0x28
mov ebx, dword [edx + 4]
mov edi, dword [esp + 0x18]
call fcn.0041a450
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [esp + 0xac], 8
jb 0x4063f5
mov edx, dword [esp + 0x98]
push edx
call fcn.0042c691
add esp, 4
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret