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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478e04
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4eec64]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x3c], 0
cmp ebx, 0x8000
jb 0x405971
mov eax, dword [edi + 0x60]
test eax, eax
je 0x405971
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x405d24
mov eax, dword [edi + 0x58]
cmp dword [ebp + 0x10], eax
jne 0x405a2b
cmp ebx, 6
jne 0x405a2b
cmp byte [edi + 0x2d], 0
je 0x405a2b
or edx, 0xffffffff
or ecx, edx
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
jne 0x4059e5
mov esi, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
test eax, eax
je 0x4059c9
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 0
sub ecx, esi
push ecx
sub edx, eax
push edx
mov edx, dword [edi + 0x58]
push esi
push eax
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x405a2b
or ebx, 0xffffffff
or esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
test eax, eax
je 0x405a12
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push 0
sub ecx, esi
push ecx
sub edx, ebx
push edx
mov edx, dword [edi + 0x58]
push esi
push ebx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x6c]
test eax, eax
je case.0x405b61.515
mov eax, dword [eax + 0x58]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x405b61.515
cmp ebx, 0x200
ja 0x405b4f
je case.0x405b61.513
lea eax, [ebx - 6]
cmp eax, 0x9a
ja case.0x405b61.515
movzx eax, byte [eax + 0x405f20]
jmp dword [eax*4 + 0x405f0c]
mov ecx, edi
call fcn.00404730
mov esi, eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, eax
jne 0x405ae0
xor eax, eax
lea ecx, [esp + 0x18]
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
push ecx
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 3
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.USER32.dll_FlashWindowEx]
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 4
jmp 0x405d24
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 4
jmp 0x405d24
mov esi, dword [ebp + 0xc]
cmp si, 1
je 0x405b00
cmp si, 2
jne 0x405b72
mov ecx, edi
call fcn.00404730
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
xor eax, eax
jmp 0x405d24
cmp dword [0x4f85c0], 0
je case.0x405b61.515
mov ecx, edi
call fcn.00404730
push eax
push 0x404b70
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov edx, dword [edi + 0x58]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x405d24
lea eax, [ebx - 0x201]
cmp eax, 7
ja case.0x405b61.515
movzx eax, byte [eax + 0x405fc4]
jmp dword [eax*4 + 0x405fbc]
xor eax, eax
jmp 0x405d24
mov esi, dword [ebp + 0xc]
cmp ebx, 0x102
ja 0x405d69
cmp ebx, 0x100
jae case.0x405d99.260
lea eax, [ebx - 2]
cmp eax, 0x85
ja case.0x405e22.521
movzx ecx, byte [eax + 0x405fec]
jmp dword [ecx*4 + 0x405fcc]
cmp byte [edi + 0x29], 0
je 0x405bb7
push 0x4f85c4
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor esi, esi
cmp dword [0x4f85c4], esi
jne 0x405bcf
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [0x4f85b8], 1
mov edx, dword [edi + 0x58]
push esi
push 0xffffffffffffffeb
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp byte [edi + 0x2a], 0
je 0x405bf1
lea ecx, [edi + 4]
call fcn.00402b30
test eax, eax
jne 0x405bf1
mov dword [edi + 0x58], esi
mov eax, dword [edi + 0x50]
cmp eax, esi
je 0x405c18
push eax
push str.Deleting__x_n
call fcn.00402b20
mov ecx, dword [edi + 0x50]
add esp, 8
cmp ecx, esi
je 0x405c15
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x50], esi
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, 0xf4240
jmp 0x405d24
cmp dword [edi + 0x50], 0
je case.0x405e22.521
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov esi, eax
test esi, esi
je 0x405cb5
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
call fcn.004046a0
test al, al
jne 0x405c88
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 0x18]
push edx
push esi
call eax
cmp byte [edi + 0x2a], 0
je 0x405ca6
mov eax, dword [edi + 0x24]
test eax, eax
je 0x405ca6
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x58]
push ecx
push esi
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, 0xf4240
jmp 0x405d24
cmp byte [edi + 0x2b], 0
jne case.0x405e22.521
mov eax, 0xf4240
jmp 0x405d24
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
cmp ebx, dword [edi + 0x80]
jne 0x405e5e
push 0
mov esi, edi
mov byte [edi + 0x7c], 0
call fcn.00404dc0
mov eax, 0xf4240
jmp 0x405d24
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x405d07
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x405d1f
mov edx, eax
movzx eax, ax
shr edx, 0x10
push edx
push eax
mov eax, edi
call fcn.00405420
mov eax, 0xf4241
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0045c0ce
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [edi + 0x60]
test edi, edi
je case.0x405b61.513
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0xf4240
jmp 0x405d24
cmp ebx, 0x205
ja 0x405e0c
cmp ebx, 0x204
jae case.0x405e22.519
lea eax, [ebx - 0x104]
cmp eax, 0xfe
ja case.0x405e22.521
movzx edx, byte [eax + 0x406080]
jmp dword [edx*4 + 0x406074]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
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
mov dword [esp + 0xb8], eax
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call edx
mov dword [esp + 0xb8], 0xffffffff
lea esi, [esp + 0x18]
cmp eax, 0xf4240
jne 0x405dff
call fcn.004061a0
mov eax, 0xf4240
jmp 0x405d24
call fcn.004061a0
mov esi, dword [ebp + 0xc]
jmp case.0x405e22.521
lea eax, [ebx - 0x207]
cmp eax, 0xf
ja case.0x405e22.521
movzx eax, byte [eax + 0x40618c]
jmp dword [eax*4 + 0x406180]
mov eax, dword [edi + 0x60]
test eax, eax
je case.0x405e22.521
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0xf4240
jmp 0x405d24
mov edx, dword [ebp + 0x10]
push edx
mov esi, edi
call fcn.00405640
movsx eax, al
jmp 0x405d24
mov ecx, dword [edi + 0x50]
xor eax, eax
cmp ecx, eax
je 0x405eb2
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, 1
mov dword [esp + 0xb8], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x40]
push edx
call eax
mov byte [esp + 0x17], 1
cmp eax, 0xf4240
je 0x405eb7
mov byte [esp + 0x17], 0
mov dword [esp + 0xb8], 0xffffffff
test byte [esp + 0x3c], 1
je 0x405ed5
lea esi, [esp + 0x40]
call fcn.004061a0
mov esi, dword [ebp + 0xc]
cmp byte [esp + 0x17], 0
jne 0x405e41
cmp byte [edi + 0x2a], 0
je 0x405d1f
mov eax, dword [edi + 0x24]
test eax, eax
je 0x405d1f
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x58]
push ecx
push esi
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
jmp 0x405d24