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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
or esi, 0xffffffff
mov ebx, ecx
push edi
mov dword [esp + 0x24], esi
call fcn.0049c1c0
cmp dword [ebx + 0x1a8], 0
jne 0x4a07d2
lea ebp, [ebx + 0x10]
mov ecx, ebp
call fcn.004777be
test al, al
je 0x4a07d2
inc dword [ebx + 0x1a8]
mov ecx, ebp
call fcn.004777c6
test al, al
jne 0x4a07cc
mov ecx, ebp
call fcn.004777ca
mov ecx, ebp
mov byte [esp + 0x13], al
mov byte [esp + 0x30], 0
call fcn.004780c5
or dword [esp + 0x1c], esi
xor ecx, ecx
or dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x4a07b0
dec eax
xor esi, esi
mov dword [esp + 0x3c], eax
inc esi
mov ecx, ebp
call fcn.0047787c
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.00477363
mov dword [esp + 0x28], eax
cmp dword [eax], esi
jne 0x4a05e3
push 0
push eax
push 0x420
jmp 0x4a065c
cmp dword [eax], 3
jne 0x4a0654
movaps xmm0, xmmword [0x541be0]
lea esi, [esp + 0x40]
mov eax, dword [eax + 4]
sub esp, 0x28
and dword [esp + 0x88], 0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x8c], eax
xorps xmm0, xmm0
push 0xa
pop ecx
mov edi, esp
movups xmmword [esp + 0x78], xmm0
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0049f53d
mov edi, dword [esp + 0x28]
mov cl, byte [edi + 0x10]
test cl, cl
jne 0x4a0638
or dword [esp + 0x1c], 0xffffffff
or dword [esp + 0x18], 0xffffffff
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
xor eax, eax
test cl, cl
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x4a067c
push 0
push eax
push 0x820
lea ecx, [esp + 0x4c]
call fcn.0049a1bc
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0049f53d
mov edi, dword [esp + 0x28]
mov ecx, ebp
call fcn.004779af
cmp dword [edi], 3
je 0x4a069b
push dword [edi + 4]
mov ecx, ebx
call fcn.0049efd7
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
jmp 0x4a069f
mov eax, dword [esp + 0x24]
xor edx, edx
inc edx
push 0x20
pop esi
cmp dword [edi], edx
jne 0x4a070c
mov edx, dword [edi + 0xc]
add eax, edx
mov ecx, dword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0x21
pop esi
test eax, eax
jle 0x4a06f8
cmp ecx, dword [esp + 0x18]
je 0x4a06e1
mov eax, dword [esp + 0x18]
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x20]
cmp ecx, eax
je 0x4a06dd
mov eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x4a06fe
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
lea ebp, [ebx + 0x10]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
jmp 0x4a0706
mov eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jmp 0x4a0728
cmp dword [edi], 0
jne 0x4a0728
or dword [esp + 0x1c], 0xffffffff
and dword [esp + 0x14], 0
or dword [esp + 0x18], 0xffffffff
and dword [esp + 0x20], 0
push 0x22
pop esi
xor eax, eax
inc eax
cmp dword [esp + 0x34], eax
jle 0x4a0737
or esi, 0x80
mov ecx, ebp
call fcn.0047787c
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x38]
push 1
pop edx
movzx ecx, cl
cmovne ecx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x2c], edx
jne 0x4a076d
or esi, 0x100
test cl, cl
je 0x4a076d
or esi, 0x1000
push 0
push dword [edi + 8]
lea ecx, [esp + 0x48]
push eax
push dword [edi + 0xc]
push dword [edi + 4]
push esi
call fcn.0047c5fa
sub esp, 0x28
mov esi, eax
push 0xa
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0049f53d
mov edi, dword [esp + 0x2c]
inc edi
push 1
mov dword [esp + 0x30], edi
pop esi
cmp edi, dword [esp + 0x34]
jl 0x4a05bf
mov esi, dword [esp + 0x24]
mov ecx, ebp
call fcn.004777ca
mov byte [esp + 0x3c], al
cmp byte [esp + 0x13], al
je 0x4a07cc
push dword [esp + 0x3c]
mov ecx, ebx
call fcn.0049f5e4
dec dword [ebx + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret