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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443deb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4543e4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4543e4]
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 [0x456d48]
call fcn.0040a020
test al, al
je 0x405b4f
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 0x405ba7
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.00404250
lea edx, [esp + 0x94]
push edx
mov ecx, 0x1ff9
mov edx, 0x456d68
call fcn.00413ac0
mov eax, dword [esp + 0x94]
mov edi, 8
cmp dword [esp + 0xa8], edi
jae 0x405be0
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, 0x456d68
mov dword [esp + 0x1c], 6
call fcn.00413ac0
cmp dword [esp + 0xa8], edi
jb 0x405c70
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], ecx
jmp 0x405c7b
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, 0x456d68
call fcn.00413ac0
cmp dword [esp + 0xa8], 8
jb 0x405cd8
mov eax, dword [esp + 0x94]
mov dword [esp + 0x24], eax
jmp 0x405ce3
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.00432fb0
mov eax, dword [0x456d48]
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 0x405dee
mov eax, dword [esi + 0x28]
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x405d51
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 0x405d84
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
jmp 0x405d88
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 0x405de2
mov eax, dword [esi + 8]
cmp byte [eax + 0x2d], 0
jne 0x405dc4
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
jne 0x405de2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x2d], 0
je 0x405db8
jmp 0x405de2
mov eax, dword [esi + 4]
cmp byte [eax + 0x2d], 0
jne 0x405de0
lea ecx, [ecx]
cmp esi, dword [eax + 8]
jne 0x405de0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], 0
je 0x405dd0
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx]
jne 0x405d43
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 0x405e92
mov eax, dword [ebx]
mov ecx, edx
cmp eax, ecx
ja 0x405e92
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 0x405e70
mov ecx, ebx
call fcn.004158f0
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 0x405e8c
mov ecx, 0xa
mov esi, eax
rep movsd dword es:[edi], dword [esi]
xor esi, esi
add dword [ebx + 4], 0x28
jmp 0x405eb6
cmp edi, dword [ebx + 8]
jne 0x405e9e
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
test edi, edi
je 0x405eb0
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 0x405f3d
mov eax, dword [ebx]
mov edx, ecx
cmp eax, edx
ja 0x405f3d
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 0x405f2c
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 0x405f5b
jmp 0x405f54
cmp edi, dword [ebx + 8]
jne 0x405f49
mov ecx, ebx
call fcn.004158f0
mov edi, dword [ebx + 4]
cmp edi, esi
je 0x405f5b
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.004157d0
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 0x405f9b
mov edx, dword [esp + 0x94]
push edx
call fcn.0042e4d8
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.0042e4c9
mov esp, ebp
pop ebp
ret