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

Disassembly:
push 0xffffffffffffffff
push 0x5392cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push ebp
push esi
push 0x70
call fcn.004088a0
add esp, 4
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0xc8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc0], ebx
je 0x4a6dc5
push 2
push 1
push 0x3c
push 0x12
push 0x78
push 0x24
push 1
push ebx
push 9
push ebx
push 0x64
push ebx
push 0x64
push ebx
push 0xff
push 0xff
push 0xff
push 5
push ebp
mov ecx, eax
call fcn.0043bee0
mov esi, eax
jmp 0x4a6dc7
xor esi, esi
push 0x1000
mov dword [esp + 0xc4], 0xffffffff
call fcn.004e5da0
mov word [esi + 0x54], ax
mov esi, dword [esp + 0xd0]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
push eax
push ecx
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004e5ee0
lea edx, [esp + 0x20]
lea eax, [esp + 0x68]
push edx
push esi
push eax
mov dword [esp + 0x2c], 0x64
call fcn.004e77a0
push eax
lea ecx, [esp + 0x84]
push ebp
push ecx
call fcn.004e7720
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 8]
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x80], edx
call fcn.004f54a0
mov dword [esp + 0x58], eax
mov eax, dword [0x5fbea0]
add esp, 0x2c
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x4a6e78
test byte [eax + 5], 1
je 0x4a6e78
mov ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0xd0]
cmp eax, ebx
jle 0x4a7032
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc
push 0x641
call fcn.004e5da0
sub eax, 0x720
add esp, 4
and eax, 0xfff
lea ecx, [esp + 0x1c]
shl eax, 2
push ecx
lea ecx, [esp + 0x6c]
movsx edx, word [eax + 0x610c48]
movsx eax, word [eax + 0x610c4a]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x48]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x2c], edi
call fcn.004e77d0
add esp, 0xc
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call fcn.004e77d0
add esp, 0xc
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004e7720
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004e7840
mov ecx, dword [eax]
push 0x200
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
call fcn.004e5da0
and eax, 0xfff
add esp, 0x10
shl eax, 2
mov dword [esp + 0x10], edi
movsx ecx, word [eax + 0x610c4a]
movsx edx, word [eax + 0x610c48]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0xac]
push edx
push eax
call fcn.004e77d0
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x84]
push eax
push esi
push ecx
push edx
call fcn.004e77d0
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.004e7720
add esp, 0xc
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.004e7840
mov edx, dword [eax]
push 0x14
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
call fcn.004e5da0
add eax, 0x14
add esp, 0x10
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.004e75f0
push 0x90
call fcn.004088a0
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0xc4], 1
je 0x4a7017
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
push edx
push ecx
push ebp
mov ecx, eax
call fcn.004a57e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
dec eax
mov dword [esp + 0x14], eax
jne 0x4a6e91
pop edi
mov ecx, dword [esp + 0xb8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret