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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x240
mov eax, dword [ebp + 8]
mov dword [esp + 0x64], 1
mov ecx, 1
mov dword [esp + 0x90], 0x1000
mov edx, 0x1000
mov dword [esp + 0x50], 0
xor esi, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x98], 5
mov edi, 5
mov dword [esp + 0x234], 0xe9
mov ebx, 0xe9
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0xd3212636
mov word [esp + 0x8a], 0x5a4b
mov dword [esp + 0x78], 0x864c
mov dword [esp + 0x54], 0xae
mov word [esp + 0x76], 0x39fc
mov dword [esp + 0x208], 0xd3212676
mov word [esp + 0x4e], 0x5321
mov dword [esp + 0x44], 0xffff89b4
mov dword [esp + 0x84], 0x10ae
mov dword [esp + 0x230], 0x12
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x230]
mov dword [esp + 0x22c], 0x1f
mov dword [esp + 0x21c], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov dword [esp + 0x204], 0x10ae
mov dword [esp + 0x68], 0xffff89b4
mov dword [esp + 0x224], 0xd3212676
mov eax, esp
mov dword [eax], 0x1f
mov eax, 0x410294
mov dword [esp + 0x30], ecx
mov ecx, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
call fcn.00402a90
sub esp, 4
mov dword [esp + 0x214], eax
mov eax, esp
mov ecx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, 0x4102b4
call fcn.00402a90
sub esp, 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x228], 0
mov byte [esp + 0x21b], 0xc
mov dword [esp + 0x220], eax
mov ecx, dword [esp + 0x214]
lea edx, [esp + 0x9c]
mov esi, esp
mov dword [esi + 8], edx
lea edx, [esp + 0x80]
mov dword [esi + 4], edx
mov dword [esi], eax
call fcn.00403870
sub esp, 0xc
lea ecx, [esp + 0xa0]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x1c], eax
call fcn.00402d20
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x204]
mov edx, dword [esp + 0x68]
add edx, 0x864c
mov dword [esp + 0x210], 0
add ecx, 0xffffff52
mov esi, dword [esp + 0x224]
add esi, 0x2cded9ca
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], 0
call eax
sub esp, 0x10
mov dword [esp + 0x238], 0
mov dword [esp + 0x200], eax
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0xa0]
mov edx, esp
mov dword [edx], eax
call fcn.00403e70
sub esp, 4
lea ecx, [0x401109]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 0x20c], ecx
mov ecx, dword [esp + 0x8c]
movzx ecx, byte [ecx]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
mov dword [esp + 0x18], eax
jne 0x4058cd
lea eax, [esp + 0x228]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x28]
add edx, dword [ecx + 1]
mov ecx, dword [esp + 0x8c]
add ecx, edx
mov si, word [esp + 0x4e]
mov di, ax
or si, di
mov word [esp + 0x4e], si
mov dword [esp + 0x8c], ecx
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x238]
and edx, eax
mov dword [esp + 0x238], edx
mov dword [esp + 0x6c], 0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x3c]
add ecx, 0
mov dx, word [esp + 0x76]
mov dword [esp + 0x228], ecx
xor dx, 0x6364
mov word [esp + 0x76], dx
mov dx, word [esp + 0x76]
add dx, 0x50af
mov word [esp + 0x76], dx
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jae 0x40596e
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov dl, byte [ecx + eax]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x20c]
mov dword [esp + 0x210], 0
mov byte [ecx + eax], dl
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x238], ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x7c], eax
jmp 0x4058f1
lea eax, [esp + 0xa0]
mov dword [esp], eax
call fcn.00402230
mov eax, 0
lea ecx, [esp + 0xa0]
mov dword [esp], ecx
mov dword [esp + 0x14], eax
call dword [esp + 0x200]
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x6c]
mov dx, word [esp + 0x76]
and dx, 0x684b
mov word [esp + 0x76], dx
mov dword [esp + 0x6c], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret