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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443628
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4563d4]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x4563d4]
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 [0x458d08]
call fcn.00409650
test al, al
je 0x405bf6
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 0x405c4e
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.00404f00
lea edx, [esp + 0x98]
push edx
mov ecx, 0x1ff9
mov edx, 0x458d28
call fcn.00418900
mov eax, dword [esp + 0x98]
mov ebx, 8
cmp dword [esp + 0xac], ebx
jae 0x405c87
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, 0x458d28
mov dword [esp + 0x20], 6
call fcn.00418900
cmp dword [esp + 0xac], ebx
jb 0x405d17
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x405d22
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, 0x458d28
call fcn.00418900
cmp dword [esp + 0xac], 8
jb 0x405d7f
mov eax, dword [esp + 0x98]
mov dword [esp + 0x28], eax
jmp 0x405d8a
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, 0x458d28
call fcn.00418900
cmp dword [esp + 0xac], 8
jb 0x405ddf
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x28], ecx
jmp 0x405dea
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.004367d0
mov eax, dword [0x458d08]
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 0x405f63
mov ebx, dword [esi + 0x28]
cmp dword [ebx + 0x68], 8
lea eax, [ebx + 0x54]
jb 0x405e3e
mov eax, dword [eax]
push eax
call fcn.00417c40
mov dword [esp + 0xb8], eax
lea eax, [ebx + 0x38]
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [esp + 0xb8], edx
jb 0x405e60
mov eax, dword [eax]
push eax
call fcn.00417c40
add esp, 4
cmp dword [esp + 0xb8], edx
jl 0x405f16
jg 0x405e85
cmp dword [esp + 0xb4], eax
jbe 0x405f16
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x405e99
mov edx, dword [eax]
mov dword [esp + 0x50], edx
jmp 0x405e9d
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 0x405ed2
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
jmp 0x405ed6
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 0x405efb
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 0x405f57
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x405f3c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x405f57
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x405f30
jmp 0x405f57
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x405f55
cmp esi, dword [eax + 8]
jne 0x405f55
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x405f45
mov esi, eax
mov edx, dword [esp + 0x18]
cmp esi, dword [edx]
jne 0x405e30
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 0x406007
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
cmp eax, ecx
ja 0x406007
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 0x405fe9
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 0x406001
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
jmp 0x40602b
cmp edi, dword [ebx + 8]
jne 0x406013
mov ecx, ebx
call fcn.0041a4a0
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x406025
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 0x4060c0
mov edx, dword [ebx]
cmp edx, ecx
ja 0x4060c0
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 0x4060a1
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 0x4060b7
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x28
or esi, 0xffffffff
jmp 0x4060e7
cmp edi, dword [ebx + 8]
jne 0x4060ce
mov ecx, ebx
call fcn.0041a4a0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x4060e3
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 0x406171
mov edx, dword [ebx]
cmp edx, ecx
ja 0x406171
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 0x406160
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 0x406191
jmp 0x40618a
cmp edi, dword [ebx + 8]
jne 0x40617f
mov ecx, ebx
call fcn.0041a4a0
xor eax, eax
mov edi, dword [ebx + 4]
cmp edi, eax
je 0x406196
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 0x406225
mov eax, dword [ebx]
cmp eax, edx
ja 0x406225
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 0x406214
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 0x406245
jmp 0x40623e
cmp edi, dword [ebx + 8]
jne 0x406233
mov ecx, ebx
call fcn.0041a4a0
xor ecx, ecx
mov edi, dword [ebx + 4]
cmp edi, ecx
je 0x406245
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 0x406285
mov edx, dword [esp + 0x98]
push edx
call fcn.0042d224
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.0042d215
mov esp, ebp
pop ebp
ret