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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443d98
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
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 [0x456d48]
call fcn.0040a020
test al, al
je 0x4061d6
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 0x40622e
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.00404250
lea edx, [esp + 0x98]
push edx
mov ecx, 0x1ff9
mov edx, 0x456d68
call fcn.00413ac0
mov eax, dword [esp + 0x98]
mov ebx, 8
cmp dword [esp + 0xac], ebx
jae 0x406267
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, 0x456d68
mov dword [esp + 0x20], 6
call fcn.00413ac0
cmp dword [esp + 0xac], ebx
jb 0x4062f7
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x406302
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, 0x456d68
call fcn.00413ac0
cmp dword [esp + 0xac], 8
jb 0x40635f
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], eax
jmp 0x40636a
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, 0x456d68
call fcn.00413ac0
cmp dword [esp + 0xac], 8
jb 0x4063bf
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x4063ca
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.00432fb0
mov eax, dword [0x456d48]
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 0x406543
mov ebx, dword [esi + 0x28]
cmp dword [ebx + 0x68], 8
lea eax, [ebx + 0x54]
jb 0x40641e
mov eax, dword [eax]
push eax
call fcn.00418590
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0x38]
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [esp + 0xb8], edx
jb 0x406440
mov eax, dword [eax]
push eax
call fcn.00418590
add esp, 4
cmp dword [esp + 0xb8], edx
jl 0x4064f6
jg 0x406465
cmp dword [esp + 0xb4], eax
jbe 0x4064f6
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x406479
mov edx, dword [eax]
mov dword [esp + 0x50], edx
jmp 0x40647d
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 0x4064b2
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
jmp 0x4064b6
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 0x4064db
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 0x406537
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x40651c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x406537
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x406510
jmp 0x406537
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x406535
cmp esi, dword [eax + 8]
jne 0x406535
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x406525
mov esi, eax
mov edx, dword [esp + 0x18]
cmp esi, dword [edx]
jne 0x406410
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 0x4065e7
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
cmp eax, ecx
ja 0x4065e7
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 0x4065c9
mov ecx, ebx
call fcn.004158f0
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 0x4065e1
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
jmp 0x40660b
cmp edi, dword [ebx + 8]
jne 0x4065f3
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x406605
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 0x4066a0
mov edx, dword [ebx]
cmp edx, ecx
ja 0x4066a0
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 0x406681
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406697
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
or esi, 0xffffffff
jmp 0x4066c7
cmp edi, dword [ebx + 8]
jne 0x4066ae
mov ecx, ebx
call fcn.004158f0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x4066c3
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 0x406751
mov edx, dword [ebx]
cmp edx, ecx
ja 0x406751
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 0x406740
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
mov eax, dword [ebx]
lea edx, [esi + esi*4]
lea esi, [eax + edx*8]
test edi, edi
je 0x406771
jmp 0x40676a
cmp edi, dword [ebx + 8]
jne 0x40675f
mov ecx, ebx
call fcn.004158f0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406776
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 0x406805
mov eax, dword [ebx]
cmp eax, edx
ja 0x406805
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 0x4067f4
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
lea eax, [esi + esi*4]
lea esi, [ecx + eax*8]
test edi, edi
je 0x406825
jmp 0x40681e
cmp edi, dword [ebx + 8]
jne 0x406813
mov ecx, ebx
call fcn.004158f0
xor ecx, ecx
mov edi, dword [ebx + 4]
cmp edi, ecx
je 0x406825
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.004157d0
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 0x406865
mov edx, dword [esp + 0x98]
push edx
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret