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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x168
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3a]
lea edx, [esp + 0x124]
lea esi, [esp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x10]
push esi
call fcn.004a83a0
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0x4c60d0
mov dword [esp + 0x5c], 0x51bec4
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], esp
mov dword [esp + 0x64], 0x4a6562
mov dword [esp + 0x44], 1
lea eax, [esp + 0x40]
push eax
call fcn.004c7670
add esp, 4
lea ecx, [esp + 0x18]
push 0
push 0xa
call fcn.0046f710
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x4a608a
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
mov byte [esp + 7], 1
mov byte [esp + 0x17], 0x45
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jmp 0x4a60c6
add eax, 2
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a60f0
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4a6100
movzx eax, word [eax]
xor ebx, ebx
cmp ax, 0xffff
mov edi, dword [esp + 8]
jne 0x4a612c
jmp 0x4a611f
xor ecx, ecx
mov bl, 1
mov edi, dword [esp + 8]
jmp 0x4a612c
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], 2
call eax
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp ax, 0xffff
mov edi, dword [esp + 8]
jne 0x4a612c
lea eax, [ebp + 8]
mov dword [eax], 0
xor ecx, ecx
mov bl, 1
lea eax, [ebp + 0xc]
mov edx, dword [eax]
test edx, edx
mov dword [esp + 0xc], ecx
je 0x4a6198
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x4a6160
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a618b
test bl, bl
mov ecx, dword [esp + 0xc]
jne 0x4a61a2
jmp 0x4a62f0
mov dword [esp + 0x74], ebx
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], 3
mov dword [esp + 0x10], edx
mov ecx, edx
call eax
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x74]
cmp ax, 0xffff
jne 0x4a614a
lea eax, [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [esp + 0xc]
xor edx, edx
test bl, bl
jne 0x4a62f0
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
movzx ebx, byte [esp + 0x18]
test bl, 1
jne 0x4a61e0
shr ebx, 1
lea edx, [edi + ebx]
cmp eax, edx
je 0x4a61eb
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 8], edi
je 0x4a625e
movzx eax, word [eax]
jmp 0x4a6271
mov ebx, dword [esp + 0x1c]
lea edx, [edi + ebx]
cmp eax, edx
jne 0x4a61bd
mov dword [esp + 8], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x44], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
add eax, 0xffffffff
test byte [esp + 0x18], 1
mov ecx, 0xa
cmove eax, ecx
mov dword [esp + 0x44], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.0046f710
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4a6240
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esp + 8], edi
jne 0x4a61cd
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], 6
call eax
mov edi, dword [esp + 8]
movzx ecx, word [esp + 0x3a]
movzx edx, word [esp + 0x38]
mov dword [esp + 0x44], 7
movzx eax, ax
lea esi, [esp + 0x124]
push esi
lea esi, [esp + 0x40]
push esi
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0x90]
push esi
lea esi, [esp + 0x3c]
push esi
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
push edi
lea ecx, [esp + 0x3b]
push ecx
lea ecx, [esp + 0x2f]
push ecx
push eax
call fcn.004a85f0
add esp, 0x30
test eax, eax
jne 0x4a62e8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4a60c0
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x44], 8
call eax
jmp 0x4a60c6
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 8]
movzx eax, byte [esp + 0x2c]
test al, 1
je 0x4a630a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
cmp byte [esp + 7], 0
jne 0x4a6317
jmp 0x4a633f
shr eax, 1
mov dword [esp + 0x10], edx
cmp byte [esp + 7], 0
je 0x4a633f
test eax, eax
je 0x4a633f
mov eax, dword [esp + 0x24]
mov ecx, eax
lea edx, [esp + 0x84]
sub ecx, edx
cmp ecx, 0x9f
jg 0x4a633f
mov ecx, dword [esp + 0x3c]
lea edx, [eax + 4]
mov dword [esp + 0x24], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004c1970
add esp, 0xc
fstp dword [esp + 0x78]
movss xmm0, dword [esp + 0x78]
mov eax, dword [ebp + 0x18]
movss dword [eax], xmm0
movzx ecx, byte [esp + 0x2c]
mov ebx, ecx
and bl, 1
je 0x4a6382
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4a638e
jmp 0x4a6466
mov eax, ecx
shr eax, 1
test eax, eax
je 0x4a6466
mov edx, dword [esp + 0x24]
mov eax, edx
lea esi, [esp + 0x84]
sub eax, esi
cmp eax, 5
jl 0x4a6466
lea edi, [edx - 4]
lea eax, [esp + 0x84]
cmp eax, edx
je 0x4a63f3
cmp edi, eax
jbe 0x4a63f3
lea ecx, [esp + 0x88]
mov dword [esp + 8], edi
mov edx, edi
nop word cs:[eax + eax]
nop
mov esi, dword [ecx - 4]
mov edi, dword [edx]
mov dword [ecx - 4], edi
mov dword [edx], esi
add edx, 0xfffffffc
lea esi, [ecx + 4]
cmp ecx, edx
mov ecx, esi
jb 0x4a63d0
mov cl, byte [esp + 0x2c]
mov ebx, ecx
and bl, 1
mov edi, dword [esp + 8]
test bl, bl
je 0x4a6401
mov edx, dword [esp + 0x34]
cmp edi, eax
ja 0x4a6409
jmp 0x4a6449
lea edx, [esp + 0x2d]
cmp edi, eax
jbe 0x4a6449
test bl, bl
je 0x4a6413
mov ecx, dword [esp + 0x30]
jmp 0x4a6418
shr cl, 1
movzx ecx, cl
add ecx, edx
jmp 0x4a6436
mov eax, ecx
sub eax, edx
cmp eax, 1
lea eax, [edx + 1]
cmovg edx, eax
mov eax, esi
add eax, 4
cmp eax, edi
jae 0x4a6449
mov esi, eax
movzx ebx, byte [edx]
mov eax, ebx
add al, 0xff
cmp al, 0x7d
ja 0x4a6420
cmp dword [esi], ebx
je 0x4a6420
jmp 0x4a645d
movzx ecx, byte [edx]
mov eax, ecx
add al, 0xff
cmp al, 0x7d
ja 0x4a6466
mov eax, dword [edi]
add eax, 0xffffffff
cmp eax, ecx
jb 0x4a6466
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov bl, 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a6491
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x10]
je 0x4a64e7
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a6502
xor ebx, ebx
test edx, edx
jne 0x4a650f
jmp 0x4a6499
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4a650f
test bl, bl
je 0x4a64a3
mov eax, dword [ebp + 0x14]
or byte [eax], 2
lea eax, [ebp + 8]
mov esi, dword [eax]
test byte [esp + 0x18], 1
je 0x4a64bb
push dword [esp + 0x20]
call fcn.004c3b20
add esp, 4
test byte [esp + 0x2c], 1
je 0x4a64ce
push dword [esp + 0x34]
call fcn.004c3b20
add esp, 4
lea eax, [esp + 0x40]
push eax
call fcn.004c76a0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], 0xa
call eax
mov edx, dword [esp + 0x10]
mov bl, 1
cmp ax, 0xffff
jne 0x4a6485
lea eax, [ebp + 8]
mov dword [eax], 0
test edx, edx
je 0x4a6499
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x4a652d
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4a654c
test bl, bl
je 0x4a649d
jmp 0x4a64a3
mov dword [esp + 0xc], ebx
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x44], 0xb
mov ecx, edx
call eax
mov ebx, dword [esp + 0xc]
cmp ax, 0xffff
jne 0x4a6520
lea eax, [ebp + 0xc]
mov dword [eax], 0
test bl, bl
jne 0x4a649d
jmp 0x4a64a3