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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4747f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push esi
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0xc78]
mov dword fs:[0], eax
mov ebx, ecx
push 0x8c
mov dword [esp + 0x24], ebx
call fcn.004596f4
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0xc80], esi
cmp eax, esi
je 0x404a87
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, eax
call fcn.004055a0
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x404a8d
mov dword [esp + 0x14], esi
mov edi, esi
push esi
mov dword [esp + 0xc84], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push esi
push edi
mov ecx, ebx
call eax
test eax, eax
je 0x404d6d
xor ecx, ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0xc88], 1
mov eax, edi
mov dword [esp + 0x24], esi
mov byte [esp + 0x1b], cl
call fcn.0040a1d0
test eax, eax
je 0x404d22
lea esi, [esp + 0x48]
call fcn.00425bb0
test al, al
jne 0x404d30
lea ecx, [esp + 0x9c]
push ecx
call fcn.00429e70
lea edx, [esp + 0x2c]
push edx
mov eax, 0x14
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc84], 2
call fcn.0042c2d0
push 0x47caa4
lea ecx, [esp + 0x30]
mov byte [esp + 0xc84], 3
call fcn.004054a0
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, 1
xor eax, eax
mov dword [esp + 0x20], 0x20
call fcn.00405040
cmp eax, 0xffffffff
je 0x404cd9
mov esi, eax
cmp eax, 0xffffffff
je 0x404cd9
mov dword [esp + 0x18], 0x20
lea ebx, [ebx]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
lea edi, [esp + 0x68]
call fcn.00404dd0
lea ecx, [esi + 1]
lea eax, [esp + 0x80]
lea edx, [esp + 0x2c]
mov byte [esp + 0xc80], 4
call fcn.00404ed0
mov ebx, eax
mov byte [esp + 0xc80], 5
mov ecx, dword [esp + 0x2c]
mov edi, 8
cmp dword [esp + 0x40], edi
jae 0x404bc8
lea ecx, [esp + 0x2c]
cmp dword [ebx + 0x14], edi
jb 0x404bd1
mov eax, dword [ebx]
jmp 0x404bd3
mov eax, ebx
cmp ecx, eax
je 0x404bf3
or eax, 0xffffffff
xor ecx, ecx
lea esi, [esp + 0x2c]
call fcn.00404050
push 0
or eax, 0xffffffff
mov ecx, ebx
mov edx, esi
call fcn.004043d0
mov byte [esp + 0xc80], 4
cmp dword [esp + 0x94], edi
jb 0x404c14
mov eax, dword [esp + 0x80]
push eax
call fcn.004593e2
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, 1
xor eax, eax
call fcn.00405040
cmp eax, 0xffffffff
jne 0x404c33
or esi, eax
jmp 0x404c35
mov esi, eax
sub esp, 0x1c
mov edx, esp
xor ebx, ebx
xor eax, eax
mov edi, 7
mov dword [edx + 0x14], edi
mov dword [edx + 0x10], ebx
mov dword [esp + 0x40], esp
mov word [edx], ax
push ebx
or eax, 0xffffffff
lea ecx, [esp + 0x68]
call fcn.004043d0
sub esp, 0x1c
mov edx, esp
mov byte [esp + 0xcb8], 6
xor ecx, ecx
mov dword [edx + 0x14], edi
mov dword [edx + 0x10], ebx
mov dword [esp + 0x60], esp
mov word [edx], cx
push ebx
or eax, 0xffffffff
lea ecx, [esp + 0xa0]
call fcn.004043d0
mov byte [esp + 0xcb8], 4
call fcn.00425f20
mov bl, al
add esp, 0x38
test bl, bl
jne 0x404cca
mov byte [esp + 0xc80], 3
cmp dword [esp + 0x78], 8
jb 0x404cbb
mov edx, dword [esp + 0x64]
push edx
call fcn.004593e2
add esp, 4
cmp esi, 0xffffffff
jne 0x404b80
mov edi, dword [esp + 0x14]
jmp 0x404cdd
lea ecx, [esp + 0x64]
call fcn.004044f0
mov edi, dword [esp + 0x14]
jmp 0x404cdd
mov bl, byte [esp + 0x13]
cmp dword [esp + 0x40], 8
jb 0x404cf1
mov eax, dword [esp + 0x2c]
push eax
call fcn.004593e2
add esp, 4
xor ecx, ecx
mov word [esp + 0x2c], cx
lea ecx, [esp + 0x9c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov byte [esp + 0xc80], 1
call fcn.00429fc0
test bl, bl
jne 0x404d2c
xor esi, esi
cmp edi, esi
je 0x404d59
mov edx, dword [edi]
mov ecx, edi
jmp 0x404d53
mov ebx, dword [esp + 0x20]
mov ecx, 0x3f
mov eax, edi
call fcn.0040a5c0
push edi
mov edi, dword [ebx + 0x54]
call fcn.00404670
test eax, eax
jne 0x404d59
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404d59
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp dword [esp + 0x5c], 8
jb 0x404d6d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004593e2
add esp, 4
mov ecx, dword [esp + 0xc78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc60]
xor ecx, esp
call fcn.004593ed
mov esp, ebp
pop ebp
ret 4