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

Disassembly:
sub esp, 0x64
mov eax, dword [0x991fc0]
xor eax, esp
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
movzx eax, byte [ecx + 0x35]
push esi
mov esi, dword [ecx + 0x18]
push edi
mov edi, dword [esp + 0x80]
push 0x3c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edi
mov dword [ebx], 2
mov dword [ebx + 4], ecx
mov dword [esp + 0x3c], 0
call fcn.004f0670
imul eax, esi, 0x64
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
cmp byte [eax + 0x51455c], 0
jbe 0x4a901a
imul eax, esi, 0x19
mov dword [esp + 0x24], eax
push ebp
push dword [esp + 0x30]
push ebx
call fcn.0041e170
mov ecx, dword [esp + 0x30]
add esp, 0xc
add ecx, ebp
mov edi, eax
mov ecx, dword [ecx*4 + 0x514574]
test cl, 0x79
jne 0x4a8f4d
mov ebp, dword [edi]
xor eax, eax
mov edx, dword [esp + 0x20]
cmp dword [ebp + 0xc], eax
cmovne ebp, eax
test cl, 6
je 0x4a8f37
cmp edx, 0x20
jne 0x4a8f37
test ebp, ebp
je 0x4a8f37
mov eax, dword [ebp + 0x18]
cmp eax, 0x25
je 0x4a8f12
cmp eax, 0x22
jne 0x4a8f37
push 0x23
push dword [ebx + 0x10]
call fcn.00407140
mov edi, eax
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [edi + 0x38]
push ecx
call fcn.00407300
push edi
push ebx
call fcn.0041db30
add esp, 0x18
jmp 0x4a8f47
push 0
or edx, ecx
push edx
push ecx
push edi
push ebx
call fcn.0041e1d0
add esp, 0x14
mov ebp, dword [esp + 0x14]
mov edi, eax
cmp ebp, 1
jne 0x4a8ffa
cmp esi, 0x152
je 0x4a8f96
cmp esi, 0x153
je 0x4a8f96
cmp esi, 0x1c5
je 0x4a8f96
cmp esi, 0x7c
je 0x4a8f96
cmp esi, 0x7f
je 0x4a8f96
cmp esi, 0x7d
je 0x4a8f96
cmp esi, 0x7e
je 0x4a8f96
cmp esi, 0x78
je 0x4a8f96
cmp esi, 0x7b
je 0x4a8f96
cmp esi, 0x79
je 0x4a8f96
cmp esi, 0x7a
jne 0x4a8ffa
mov eax, dword [esp + 0x10]
cdq
add eax, 0xffffffff
push 0x20
adc edx, 0xffffffff
push edx
push eax
call fcn.0040fdb0
push 0x20
push 1
push dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
call fcn.00409c50
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x4a8fe8
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x28]
push eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.0041dcb0
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0x18
push eax
push edi
push 0x125
push ebx
call fcn.0041d920
add esp, 0x10
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + ebp*4 + 0x30], edi
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, byte [eax + 0x51455c]
cmp ebp, eax
jb 0x4a8ec7
mov edi, dword [esp + 0x20]
cmp esi, 0x145
je 0x4a91db
cmp esi, 0x1ae
je 0x4a91db
cmp esi, 0x124
je 0x4a90d9
cmp esi, 0x156
je 0x4a906e
cmp esi, 0x18f
je 0x4a90d9
cmp esi, 0x18e
je 0x4a90d9
lea eax, [esp + 0x30]
push eax
push esi
push ebx
call fcn.0041dab0
add esp, 0xc
jmp 0x4a9268
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x155
push ebx
call fcn.0041d920
add esp, 0x10
mov ebp, eax
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, dword [esp + 0x10]
mov edx, 0x7fffffff
call fcn.004ef900
mov ecx, eax
not ecx
mov dword [esp + 0x24], ecx
mov ecx, edx
push edi
push edx
not ecx
push eax
mov dword [esp + 0x34], ecx
call fcn.0040fdb0
push edi
push 1
push dword [ebx + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
call fcn.00409c50
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4a914e
mov dword [esp + 0x14], eax
jmp 0x4a916d
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x122
push ebx
call fcn.0041d920
add esp, 0x10
mov ebp, eax
cmp esi, 0x124
je 0x4a9086
cmp esi, 0x156
je 0x4a9086
cmp esi, 0x18f
jne 0x4a913b
mov ecx, 0x40
or eax, 0xffffffff
sub ecx, dword [esp + 0x10]
or edx, 0xffffffff
push edi
call fcn.004ef1a0
push edx
push eax
push ebx
call fcn.00410ac0
push eax
push ebp
push 0x1a7
push ebx
call fcn.0041d920
add esp, 0x20
jmp 0x4a9268
push dword [esp + 0x10]
push ebp
push ebx
call fcn.00412390
add esp, 0xc
jmp 0x4a9268
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x18]
push edi
push ebx
mov dword [edi + 0x34], eax
call fcn.0041dcb0
lea eax, [edi + 0x18]
add esp, 8
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0040fdb0
push edi
push 1
push dword [ebx + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
call fcn.00409c50
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4a91b6
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x18]
push edi
push ebx
mov dword [edi + 0x34], eax
call fcn.0041dcb0
add esp, 8
add edi, 0x18
push edi
push ebp
push 0x13c
push ebx
call fcn.0041d920
push dword [esp + 0x24]
push eax
push 0x13d
push ebx
call fcn.0041d920
add esp, 0x20
jmp 0x4a9268
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x140
push ebx
call fcn.0041d920
mov ebp, dword [esp + 0x20]
mov edi, eax
imul eax, esi, 0x64
add esp, 0x10
test byte [eax + 0x514560], 4
je 0x4a9210
push ebp
push edi
push ebx
call fcn.00412390
add esp, 0xc
jmp 0x4a926c
test ebp, ebp
je 0x4a926e
mov eax, ebp
cdq
push 0x20
push edx
push eax
call fcn.0040fdb0
push 0x20
push 1
push dword [ebx + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
call fcn.00409c50
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x4a9258
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x30], eax
mov eax, dword [esp + 0x18]
push ebp
push ebx
mov dword [ebp + 0x34], eax
call fcn.0041dcb0
add esp, 8
add ebp, 0x18
push ebp
push edi
push 0x153
push ebx
call fcn.0041d920
add esp, 0x10
mov ebp, dword [esp + 0x10]
mov edi, eax
imul eax, esi, 0x64
mov ecx, dword [eax + 0x514560]
test cl, 0x79
jne 0x4a9296
cmp ebp, dword [esp + 0x20]
je 0x4a9296
push 0
mov eax, ecx
or eax, ebp
push eax
push ecx
push edi
push ebx
call fcn.0041e1d0
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0x2c]
add eax, 0x24
push edi
push eax
call fcn.00407fa0
mov ecx, dword [esp + 0x78]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eef15
add esp, 0x64
ret