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

Disassembly:
mov eax, 0x993c
call fcn.00558480
mov eax, dword [0x5f3edc]
push ebx
mov ebx, dword [esp + 0x9948]
push ebp
push esi
push edi
mov dword [esp + 0x9948], eax
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004a1330
mov ebp, dword [esp + 0x9958]
mov edx, dword [ebp + 0x1d4]
lea esi, [ebp + 0x20]
mov ecx, 0x10
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x60]
mov ecx, 0x10
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x308]
mov esi, dword [ebp + 0x30c]
mov eax, edi
shl eax, 4
mov ecx, esi
shl ecx, 4
and edx, 0xc
add esp, 8
cmp dl, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x2c], eax
je 0x4a353f
lea edx, [eax + eax]
shl ecx, 1
mov dword [esp + 0x84], edx
mov dword [esp + 0x10], 2
mov edx, dword [ebp + 0xa4]
shr edx, 0x14
and edx, 0xff
push edx
mov edx, dword [ebp + 0xa0]
shr edx, 9
and edx, 3
push edx
push ecx
push eax
mov eax, dword [esp + 0x9968]
push eax
call fcn.0049c200
xor eax, eax
add esp, 0x14
cmp ebx, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jne 0x4a35be
push esi
push edi
lea esi, [esp + 0x30]
call fcn.004a2e20
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
jne 0x4a35a8
mov ecx, dword [esp + 0x9970]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
jmp 0x4a35be
mov edx, dword [esp + 0x9970]
push edx
lea ebx, [esp + 0x1c]
mov eax, ebp
call fcn.004a2680
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x4a387a
jmp 0x4a35e0
mov ebp, dword [esp + 0x9950]
jmp 0x4a35e0
lea eax, [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x168
add ebp, eax
mov eax, dword [ebp + 0x1d4]
mov ecx, dword [ebp + 0x1bc]
mov edx, eax
shr edx, 4
and dl, 1
mov byte [esp + 0x3a], dl
mov edx, eax
shr edx, 9
and dl, 1
mov byte [esp + 0x3b], dl
mov edx, eax
shr edx, 7
and dl, 1
mov byte [esp + 0x3c], dl
mov dl, al
shr ecx, 0xa
lea ebx, [ebp + 0x1bc]
and cl, 7
and dl, 3
mov byte [esp + 0x38], cl
mov ecx, eax
shr eax, 8
and al, 1
mov byte [esp + 0x3e], al
mov eax, dword [esp + 0x9950]
mov eax, dword [eax + 0xa0]
mov byte [esp + 0x3d], dl
mov edx, eax
shr eax, 9
and al, 3
shr edx, 0x13
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x995c]
and dl, 1
mov byte [esp + 0x3f], dl
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x9958]
mov dword [esp + 0x54], edx
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x5c], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
shr ecx, 2
mov dword [esp + 0x64], edx
mov edx, dword [eax]
and cl, 3
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov byte [esp + 0x39], cl
movzx ecx, cl
mov dword [esp + 0x4c], eax
mov eax, ecx
sub eax, 2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x48], edx
jne 0x4a36e9
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
add edx, eax
mov dword [esp + 0x44], edx
mov edx, eax
sar edx, 1
add esi, edx
mov dword [esp + 0x4c], esi
add dword [esp + 0x48], edx
cmp dword [esp + 0x9954], 1
jne 0x4a3727
sub ecx, 2
mov edx, dword [esp + 0x9960]
mov esi, dword [edx]
mov dword [esp + 0x68], esi
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], edx
jne 0x4a3727
add dword [esp + 0x68], eax
sar eax, 1
add edx, eax
mov ecx, esi
add ecx, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov eax, dword [ebp + 0x1dc]
test al, 1
je 0x4a3749
lea esi, [ebp + 0x1e0]
mov ecx, 0x10
lea edi, [esp + 0xdc]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
test al, 2
je 0x4a3765
lea esi, [ebp + 0x220]
mov ecx, 0x10
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x9954]
xor eax, eax
cmp ecx, eax
jne 0x4a3780
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
push eax
jmp 0x4a3847
mov ecx, dword [esp + 0x9968]
mov edx, dword [esp + 0x160]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebp + 0x31c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x310]
mov dword [esp + 0x164], edx
lea edx, [ecx + eax*4]
mov eax, dword [ebp + 0x318]
push esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x164], edx
call fcn.004a2720
mov eax, dword [esp + 0x164]
mov edx, dword [ebp + 0x31c]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [esp + ecx*4 + 0x20]
sub eax, edx
sar eax, 2
mov dword [ebp + 0x310], eax
add ecx, dword [esp + 0x7c]
add esp, 8
xor eax, eax
test ecx, ecx
jle 0x4a381b
mov edx, dword [esp + 0x996c]
push ecx
push edx
push ebx
mov ebx, dword [esp + 0x9970]
lea eax, [esp + 0x34]
push eax
call fcn.004a3250
add esp, 0x10
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp edx, ecx
jne 0x4a3830
cmp dword [esp + 0x10], 2
jne 0x4a3830
add dword [esp + 0x1c], eax
mov dword [esp + 0x34], 2
mov dword [esp + 0x164], ecx
mov dword [esp + 0x15c], ecx
push esi
mov eax, dword [ebp + 0x318]
lea ecx, [esp + 0x2c]
push edi
call fcn.004a2720
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 8
inc eax
cmp eax, ecx
mov dword [esp + 0x88], 1
mov dword [esp + 0x14], eax
jl 0x4a35d4
cmp dword [esp + 0x9954], 1
pop edi
pop esi
pop ebp
pop ebx
jne 0x4a389d
mov eax, dword [esp + 0x150]
test eax, eax
je 0x4a389d
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x9938]
call fcn.00558076
add esp, 0x993c
ret