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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b9e1
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
and dword [esp + 0x10], 0
cmp dword [eax], 0xffffffff
je 0x4a9d4b
lea eax, [esp + 0x2c]
push eax
call fcn.004c6df7
and dword [esp + 0x68], 0
mov eax, dword [0x575038]
mov ecx, 0x575038
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 0x10]
mov byte [esp + 0x68], 1
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, 0x5352f8
jle 0x4a9b99
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004a940c
add esp, 0xc
mov byte [esp + 0x68], 2
mov dword [esp + 0x10], 1
jmp 0x4a9bb4
push esi
lea eax, [esp + 0x24]
push eax
call fcn.00412c0a
mov dword [esp + 0x68], 3
mov dword [esp + 0x10], 2
mov eax, dword [eax]
sub eax, 0x10
call fcn.00412a2a
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x68], 4
test byte [esp + 0x10], 2
je 0x4a9be5
mov eax, dword [esp + 0x20]
and dword [esp + 0x10], 0xfffffffd
add eax, 0xfffffff0
call fcn.00410d34
mov byte [esp + 0x68], 6
test byte [esp + 0x10], 1
je 0x4a9bfd
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, dword [edi - 0xc]
test eax, eax
mov dword [esp + 0x10], 0x538d8c
jg 0x4a9c10
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 0xc]
lea esi, [esp + 0x28]
call fcn.004d49b6
push edi
mov byte [esp + 0x6c], 7
push dword [esp + 0x14]
push dword [eax]
lea eax, [esp + 0x20]
push str._r_n__s_s_s__r_n
call fcn.0041910b
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x38]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00410d34
mov esi, dword [esp + 0x18]
movzx eax, byte [esi + 8]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x1c]
call fcn.0041bee1
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx]
or ecx, 0x20019
push ecx
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x3c]
call fcn.00411a77
test eax, eax
jne 0x4a9d2e
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004a9abb
cmp byte [ebp + 0x18], 0
je 0x4a9d2e
lea ebx, [esp + 0x44]
call fcn.00411e66
lea edi, [esp + 0x2c]
call fcn.004c6db6
mov edi, eax
xor esi, esi
call fcn.00411ec9
test eax, eax
jbe 0x4a9d2a
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push 0x538d8c
push eax
call fcn.00411aaa
pop ecx
pop ecx
mov ebx, eax
mov byte [esp + 0x68], 8
call fcn.0042205b
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00403e59
pop ecx
pop ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x1c]
push dword [ebp + 0x14]
mov byte [esp + 0x70], 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a9afc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.00410d34
mov byte [esp + 0x68], 6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00410d34
mov eax, edi
inc esi
call fcn.00411ec9
cmp esi, eax
jb 0x4a9cb7
mov edi, dword [esp + 0x1c]
lea eax, [edi - 0x10]
call fcn.00410d34
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00410d34
lea edi, [esp + 0x2c]
call fcn.004c6dd2
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14