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

Disassembly:
sub esp, 0x70
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], 0x505970
mov dword [esp + 0x4c], 2
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.004a356c
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
cmp dword [esp + 0x74], 0
je 0x499c7c
push dword [esp + 0x78]
xor eax, eax
push dword [esp + 0x78]
call fcn.004a3580
mov ecx, dword [esp + 0x74]
mov ebx, 0x4cb850
mov dword [esp + 0x44], eax
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
push dword [esp + 0x60]
push dword [esp + 0x60]
push ebx
push 4
call fcn.004635f0
test al, al
je 0x4999b5
mov dword [esp + 0x7c], ebp
mov edi, dword [esp + 0x7c]
movzx ecx, byte [edi + 1]
mov dword [esp + 8], ecx
movsx edx, byte [edi]
and edx, 1
mov dword [esp + 4], edx
mov dword [esp], 0x50e020
call fcn.004bb65c
mov esi, dword [0x50ee50]
mov eax, dword [0x50ee54]
mov dword [esp + 0x54], esi
xor ebx, ebx
mov dword [esp + 0x58], eax
cmp dword [esp + 0x54], ebx
je 0x499934
mov ebp, dword [0x50ee54]
mov esi, ebp
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x49990e
mov dword [esp], 0x50e0e4
call fcn.004bb65c
mov dword [esp], 0x50e0e8
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.004bb65c
add ebp, 0xc
inc ebx
cmp ebx, dword [esp + 0x54]
jb 0x4998f5
mov eax, dword [esp + 0x7c]
fld dword [eax + 0x20]
xor ecx, ecx
xor edx, edx
fstp qword [esp + 0x2c]
mov ebx, dword [eax + 0x1c]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov dword [esp + 0x24], ebx
mov esi, dword [eax + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x1c], esi
mov edi, dword [eax + 0x14]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x50e0f0
call fcn.004bb65c
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.004a356c
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
cmp dword [esp + 0x74], 0
jne 0x499863
jmp 0x499c7c
mov esi, 1
cmp dword [esp + 0x44], esi
jbe 0x4999c9
mov eax, dword [esp + 0x48]
cmp byte [eax], 0x20
jne 0x499a25
mov dword [esp + 0x14], 0x505970
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0x505980
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0x50e2ec
mov dword [esp], 0x50a478
call fcn.004ba1f4
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add esp, 0x70
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
lea edi, [ecx - 1]
mov dword [esp + 0x44], edi
inc edx
mov dword [esp + 0x48], edx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a3638
mov ebx, eax
cmp eax, 9
ja case.default.0x499a51
jmp dword [ebx*4 + 0x505940]
push dword [esp + 0x60]
push dword [esp + 0x60]
lea edx, [esp + 0x4c]
push edx
push ebp
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.00480fe4
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea esi, [ebp + 1]
push dword [esp + 0x60]
lea ecx, [esp + 0x4c]
push ecx
push esi
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a3650
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea eax, [ebp + 4]
push dword [esp + 0x60]
lea ebx, [esp + 0x4c]
push ebx
push eax
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a37d0
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea edx, [ebp + 0xc]
push dword [esp + 0x60]
lea esi, [esp + 0x4c]
push esi
push edx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a38a8
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea ecx, [ebp + 0x10]
push dword [esp + 0x60]
lea eax, [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a38a8
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea ebx, [ebp + 0x14]
push dword [esp + 0x60]
lea edx, [esp + 0x4c]
push edx
push ebx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a38a8
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea esi, [ebp + 0x18]
push dword [esp + 0x60]
lea ecx, [esp + 0x4c]
push ecx
push esi
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a38a8
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea eax, [ebp + 0x1c]
push dword [esp + 0x60]
lea ebx, [esp + 0x4c]
push ebx
push eax
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a38a8
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea edx, [ebp + 0x20]
push dword [esp + 0x60]
lea esi, [esp + 0x4c]
push esi
push edx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a3a08
xor al, 1
jne 0x499bee
jmp 0x499c62
push dword [esp + 0x60]
lea ecx, [ebp + 0x24]
push dword [esp + 0x60]
lea eax, [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.004a37d0
xor al, 1
je 0x499c62
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add esp, 0x70
xor eax, eax
ret 0xc
mov dword [esp + 0x14], 0x505970
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0x5059a0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x50e2ec
mov dword [esp], 0x50a478
call fcn.004ba1f4
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add esp, 0x70
xor eax, eax
ret 0xc
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.004a356c
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
jmp 0x4999a5
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add esp, 0x70
mov eax, 1
ret 0xc