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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], edx
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov eax, dword [ebx]
mov ecx, eax
mov edi, dword [ebx + 8]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
call fcn.004a64f5
mov ecx, dword [esp + 0x24]
movsx edx, word [esi + 0x22]
and dword [esp + 0x28], 0
push 2
mov dword [esp + 0x40], eax
pop eax
add edx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebx + 0x28]
push 0
push edx
push ecx
mov dword [esp + 0x24], eax
lea eax, [ecx + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov ecx, edi
push 0x76
pop edx
mov dword [ebx + 0x28], eax
call fcn.0046b9a1
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
mov dword [esp + 0x34], eax
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
cmp dword [ecx], 1
jle 0x4a5425
xor eax, eax
test byte [esi + 0x1c], 0x80
mov dword [esp + 0x34], eax
jne 0x4a5343
mov edx, dword [ebp + 0x10]
push eax
push eax
test edx, edx
je 0x4a5335
mov ecx, dword [esp + 0x28]
call fcn.0047cd6c
jmp 0x4a533f
push 0x4b
pop edx
mov ecx, ebx
call fcn.0047c7e0
pop ecx
pop ecx
jmp 0x4a537d
mov ecx, esi
call fcn.004877d3
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 4]
movsx edx, word [ecx]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
js 0x4a5376
mov eax, dword [ebp + 0xc]
imul ecx, ecx, 0x14
mov edx, dword [ecx + eax + 8]
test edx, edx
je 0x4a5372
push 0
push 0
jmp 0x4a532a
xor eax, eax
jmp 0x4a537d
mov ecx, ebx
call fcn.004a3995
mov ecx, dword [ebx]
mov edx, eax
call fcn.0047d5d9
and dword [esp + 0x30], 0
mov esi, eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x4a53ef
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + edi*4]
test eax, eax
js 0x4a53c9
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x14
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x4a53c5
mov ecx, dword [esp + 0x20]
push 0
push 0
call fcn.0047cd6c
pop ecx
pop ecx
jmp 0x4a53d2
xor eax, eax
jmp 0x4a53d2
mov edx, edi
mov ecx, ebx
call fcn.004a3995
push eax
mov edx, esi
mov ecx, ebx
call fcn.0047d69e
mov esi, eax
inc edi
mov eax, dword [ebp + 8]
pop ecx
movsx eax, word [eax + 0x22]
cmp edi, eax
jl 0x4a539c
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x30]
push ecx
push esi
push dword [esp + 0x48]
mov ecx, ebx
call fcn.004a39b3
add esp, 0x18
test esi, esi
je 0x4a541b
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.0047d8c7
and dword [esp + 0x30], 0
jmp 0x4a55c1
xor esi, esi
inc eax
push esi
push 4
push esi
push esi
mov dword [esp + 0x3c], eax
mov edx, ecx
inc eax
mov ecx, ebx
push esi
push dword [ebp + 0x18]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x2c], eax
call fcn.004b1b23
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a56af
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x4a54b5
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
add ecx, 2
add ecx, esi
mov eax, dword [eax + esi*4]
push ecx
test eax, eax
js 0x4a5488
imul edx, eax, 0x14
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + eax + 8]
call fcn.004807d0
pop ecx
jmp 0x4a54a6
push esi
push dword [esp + 0x20]
mov edx, 0xaf
mov ecx, edi
call fcn.0046b9a1
add esp, 0xc
xor edx, edx
inc edx
mov ecx, edi
call fcn.0046bf17
mov eax, dword [ebp + 8]
inc esi
movsx eax, word [eax + 0x22]
cmp esi, eax
jl 0x4a5460
mov eax, dword [ebp + 8]
test byte [eax + 0x1c], 0x80
mov edx, dword [esp + 0x14]
lea esi, [edx + 1]
jne 0x4a54f8
push 0
push edx
push dword [esp + 0x20]
mov edx, 0x87
mov ecx, edi
call fcn.0046b9a1
mov edx, dword [ebp + 0x10]
add esp, 0xc
test edx, edx
je 0x4a54ea
push esi
mov ecx, ebx
call fcn.004807d0
pop ecx
jmp 0x4a5537
push 0
push esi
push dword [esp + 0x20]
mov edx, 0x87
jmp 0x4a552d
mov ecx, eax
call fcn.004877d3
push edx
mov edx, 0xaf
mov ecx, edi
mov eax, dword [eax + 4]
movsx esi, word [eax]
push esi
push dword [esp + 0x20]
call fcn.0046b9a1
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ecx + 2]
add eax, esi
push eax
push 0x51
pop edx
mov ecx, edi
call fcn.0046b9a1
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, edi
movzx esi, byte [eax + 0x2e]
mov dword [esp + 0x30], esi
test esi, esi
je 0x4a5565
mov edx, dword [esp + 0x34]
call fcn.0046c090
and dword [esp + 0x2c], 0
and dword [esp + 0x20], 0
mov eax, dword [esp + 0x18]
push 0x7a
pop edx
jmp 0x4a55aa
push dword [esp + 0x2c]
cmp dword [ebx + 0x78], 0
mov eax, ebx
push dword [esp + 0x20]
cmovne eax, dword [ebx + 0x78]
push dword [esp + 0x1c]
push 0x61
pop edx
mov byte [eax + 0x14], 1
call fcn.0046b9a1
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x24]
push dword [esp + 0x18]
push 0x7f
pop edx
call fcn.0046b9a1
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, 0x80
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x30]
push eax
call fcn.0046b9a1
add esp, 0xc
test esi, esi
jne 0x4a561d
mov eax, dword [esp + 0x24]
cmp dword [eax], 1
jne 0x4a55d3
mov ecx, dword [esp + 0x28]
call fcn.004b2538
push 0
push 0
push dword [esp + 0x18]
mov ecx, edi
push 0x24
pop edx
call fcn.0046b9a1
xor esi, esi
mov dword [esp + 0x40], eax
add esp, 0xc
cmp dword [esp + 0x1c], esi
jle 0x4a5619
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, edi
add eax, esi
push eax
push esi
push ebx
push 0x5e
pop edx
call fcn.0046b9a1
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4a55f8
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.004a7344
push 0xfffffffffffffff5
push dword [esp + 0x40]
mov ecx, edi
push dword [esp + 0x1c]
push dword [esp + 0x28]
push 0
push 7
pop edx
call fcn.0046bac5
mov eax, dword [ebp + 0x1c]
add esp, 0x14
movzx edx, ax
cmp eax, 0xb
mov ecx, edi
push 2
pop eax
cmove edx, eax
call fcn.0046bf17
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ebx, eax
mov byte [ebx + 0x15], 1
test esi, esi
jne 0x4a56a6
mov ebx, dword [esp + 0x34]
push esi
lea eax, [ebx + 1]
push eax
push dword [esp + 0x18]
push 0x27
pop edx
call fcn.0046b9a1
add esp, 0xc
mov edx, ebx
mov ecx, edi
call fcn.0046c1e8
mov esi, dword [edi + 0x6c]
push 0
push 0
push dword [esp + 0x18]
mov dword [eax + 8], esi
push 0x7a
pop edx
call fcn.0046b9a1
add esp, 0xc
jmp 0x4a56af
mov ecx, dword [esp + 0x28]
call fcn.004b2538
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret