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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [esp + 0x8b], 0x69
mov dword [esp + 0x70], 0x1be2
mov dl, byte [esp + 0x8b]
mov dh, dl
add dh, 0xc9
mov byte [esp + 0x43], dh
movzx esi, word [esp + 0x76]
mov di, si
add esi, esi
mov bx, si
mov dh, byte [esp + 0x8b]
mov word [esp + 0x76], bx
xor dh, 0x3e
mov byte [esp + 0x53], dh
mov bl, byte [esp + 0x8b]
add bl, 0x11
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
cmp bl, dh
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov byte [esp + 0x33], dl
mov word [esp + 0x30], di
mov dword [esp + 0x2c], esi
je 0x405574
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x4c]
mov edx, dword [edx + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call fcn.004063c0
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x4c], 0
jne 0x40537c
mov eax, dword [esp + 0x70]
add eax, 0xffffe41e
mov dword [esp + 0x48], eax
jmp 0x405574
mov al, 0xdc
mov ecx, 0x1be7
mov edx, dword [esp + 0x70]
mov esi, 0xb867
sub esi, edx
mov dword [esp + 0x60], 0xffff737f
mov dword [esp + 0x68], esi
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x60]
mov byte [esp + 0x2b], al
mov eax, edx
add eax, 0x809f
lea edx, [ebx + edx + 0x809f]
sub esi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x1a5f
mov dword [esp + 0x84], 0
mov eax, dword [eax + 0x50]
mov ebx, esp
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], edx
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov dword [esp + 0x24], ecx
call edi
sub esp, 0x10
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x5c]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call fcn.00403700
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x58]
add eax, 0x12c0e
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x20], eax
call fcn.004055a0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
not ecx
mov edx, dword [esp + 0x38]
not edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], ecx
mov byte [esp + 0x83], 0xf7
mov ecx, dword [esp + 0x84]
and ecx, 0x25b3
mov eax, dword [eax + 0x34]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x24]
sub edi, dword [esp + 0x70]
and ecx, esi
mov dword [esp + 0x84], ecx
sub eax, dword [edx + 0x34]
mov dword [esp + 0x64], eax
mov al, byte [esp + 0x2b]
sub al, byte [esp + 0x8b]
mov ah, byte [esp + 0x43]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x1b], al
mov byte [esp + 0x1a], ah
call fcn.00404d10
mov ah, 0xd5
mov cl, byte [esp + 0x33]
sub ah, cl
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov byte [esp + 0x83], ah
mov dword [esp], esi
mov dword [esp + 4], edx
mov byte [esp + 0x19], al
call fcn.004056d0
mov edx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 0x14], eax
call fcn.004063c0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x2c], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov cl, byte [esp + 0x1b]
mov ch, byte [esp + 0x1a]
cmp cl, ch
jb 0x405338
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x70]
mov edx, 0x76be2
sub edx, ecx
mov byte [esp + 0x83], 0
mov dword [eax + 0x30], edx
mov eax, dword [esp + 0x6c]
mov ecx, eax
add ecx, 0x18
mov edx, dword [esp + 0x2c]
not edx
mov esi, dword [esp + 0x38]
not esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x4c]
movzx eax, word [eax + 0x14]
add ecx, eax
mov dword [edx + 0x28], ecx
mov dword [esp + 0x48], 0
imul eax, dword [esp + 0x84], 0x5d39
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x48]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret