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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444748
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4563e4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x4563e4]
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 [0x458dc8]
call fcn.00409ee0
test al, al
je 0x406296
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 0x4062ee
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.004042b0
lea edx, [esp + 0x98]
push edx
mov ecx, 0x1ff9
mov edx, 0x458de8
call fcn.00413990
mov eax, dword [esp + 0x98]
mov ebx, 8
cmp dword [esp + 0xac], ebx
jae 0x406327
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, 0x458de8
mov dword [esp + 0x20], 6
call fcn.00413990
cmp dword [esp + 0xac], ebx
jb 0x4063b7
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x4063c2
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, 0x458de8
call fcn.00413990
cmp dword [esp + 0xac], 8
jb 0x40641f
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], eax
jmp 0x40642a
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, 0x458de8
call fcn.00413990
cmp dword [esp + 0xac], 8
jb 0x40647f
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x40648a
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.00433960
mov eax, dword [0x458dc8]
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 0x406603
mov ebx, dword [esi + 0x28]
cmp dword [ebx + 0x68], 8
lea eax, [ebx + 0x54]
jb 0x4064de
mov eax, dword [eax]
push eax
call fcn.004218e0
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0x38]
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [esp + 0xb8], edx
jb 0x406500
mov eax, dword [eax]
push eax
call fcn.004218e0
add esp, 4
cmp dword [esp + 0xb8], edx
jl 0x4065b6
jg 0x406525
cmp dword [esp + 0xb4], eax
jbe 0x4065b6
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x406539
mov edx, dword [eax]
mov dword [esp + 0x50], edx
jmp 0x40653d
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 0x406572
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
jmp 0x406576
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 0x40659b
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 0x4065f7
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x4065dc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x4065f7
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x4065d0
jmp 0x4065f7
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x4065f5
cmp esi, dword [eax + 8]
jne 0x4065f5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x4065e5
mov esi, eax
mov edx, dword [esp + 0x18]
cmp esi, dword [edx]
jne 0x4064d0
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 0x4066a7
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
cmp eax, ecx
ja 0x4066a7
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 0x406689
mov ecx, ebx
call fcn.00415c70
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 0x4066a1
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
jmp 0x4066cb
cmp edi, dword [ebx + 8]
jne 0x4066b3
mov ecx, ebx
call fcn.00415c70
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x4066c5
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 0x406760
mov edx, dword [ebx]
cmp edx, ecx
ja 0x406760
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 0x406741
mov ecx, ebx
call fcn.00415c70
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406757
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
or esi, 0xffffffff
jmp 0x406787
cmp edi, dword [ebx + 8]
jne 0x40676e
mov ecx, ebx
call fcn.00415c70
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406783
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 0x406811
mov edx, dword [ebx]
cmp edx, ecx
ja 0x406811
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 0x406800
mov ecx, ebx
call fcn.00415c70
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406831
jmp 0x40682a
cmp edi, dword [ebx + 8]
jne 0x40681f
mov ecx, ebx
call fcn.00415c70
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406836
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 0x4068c5
mov eax, dword [ebx]
cmp eax, edx
ja 0x4068c5
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 0x4068b4
mov ecx, ebx
call fcn.00415c70
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
lea eax, [esi + esi*4]
lea esi, [ecx + eax*8]
test edi, edi
je 0x4068e5
jmp 0x4068de
cmp edi, dword [ebx + 8]
jne 0x4068d3
mov ecx, ebx
call fcn.00415c70
xor ecx, ecx
mov edi, dword [ebx + 4]
cmp edi, ecx
je 0x4068e5
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.00415b50
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 0x406925
mov edx, dword [esp + 0x98]
push edx
call fcn.0042ee58
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.0042ee49
mov esp, ebp
pop ebp
ret