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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov ebx, dword [esi + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
mov eax, ecx
shr eax, 0x11
and al, 1
mov byte [esp + 0xe], al
mov eax, ecx
push edi
mov edi, dword [ebp + 0x18]
shr eax, 0x12
and al, 1
push ecx
mov ecx, esi
mov byte [esp + 0x17], al
call fcn.00480580
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x48]
cmp eax, 0x636f6d70
mov dword [ebx + 0x38], edx
je 0x494e06
cmp eax, 0x6f75746c
je 0x494cde
mov dword [esp + 0x14], 7
cmp dword [esp + 0x78], 0
jne 0x494cd0
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x494c23
push 0
neg edx
lea ecx, [edi + 0x14]
call fcn.0047f220
lea ecx, [edi + 0x14]
lea edx, [esp + 0x4c]
call fcn.0047f190
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
add eax, 0x3f
and eax, 0xffffffc0
and edx, 0xffffffc0
mov dword [esp + 0x54], eax
add ecx, 0x3f
and ecx, 0xffffffc0
sub eax, edx
mov dword [ebx + 0x18], eax
mov eax, ecx
and esi, 0xffffffc0
mov dword [ebx + 0x20], edx
mov dword [esp + 0x58], ecx
sub eax, esi
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp + 0x24]
sub ecx, dword [ebp + 0x1c]
mov dword [esp + 0x4c], edx
mov edx, dword [ebx + 0x94]
mov dword [esp + 0x50], esi
mov dword [ebx + 0x28], ecx
mov ecx, dword [edx]
call fcn.0047da60
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax]
mov edx, edi
call fcn.0047f9c0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
mov ecx, dword [ebx + 0x94]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
add eax, 0x14
mov dword [ebx + 0x6c], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x70], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x74], edx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x78], ecx
mov edx, dword [eax + 0x10]
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x48], 0x6f75746c
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
movsx ecx, word [ebx + 0x6c]
movsx edx, word [ebx + 0x6e]
push ecx
add edx, 2
mov ecx, edi
call fcn.0047f8a0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
movsx edx, word [ebx + 0x6e]
mov eax, dword [ebx + 0x70]
mov ecx, dword [edi + 0x50]
add edx, edx
add edx, edx
add edx, edx
push edx
push eax
push ecx
call sub.MSVCR80.dll_memcpy
movsx edx, word [ebx + 0x6c]
mov eax, dword [ebx + 0x78]
mov ecx, dword [edi + 0x40]
add edx, edx
push edx
push eax
push ecx
call sub.MSVCR80.dll_memcpy
movsx edx, word [ebx + 0x6e]
mov eax, dword [ebx + 0x74]
mov ecx, dword [edi + 0x3c]
push edx
push eax
push ecx
call sub.MSVCR80.dll_memcpy
mov dx, word [ebx + 0x6e]
mov word [edi + 0x36], dx
mov ax, word [ebx + 0x6c]
mov edx, dword [esp + 0x54]
mov word [edi + 0x34], ax
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov ecx, dword [ebx + 0x28]
add esp, 0x24
call fcn.0047d6a0
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], 0
cmp word [ebx + 0x6e], 0
je 0x494c05
push esi
mov esi, dword [esp + 0x20]
push esi
call fcn.00492e40
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
call fcn.004939d0
cmp byte [esp + 0x12], 0
jne 0x494da7
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call fcn.004939f0
mov ecx, esi
call fcn.00493b20
movzx ecx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
mov edx, ebp
call fcn.004943c0
mov eax, ebp
call fcn.00494a70
mov edx, edi
mov ecx, esi
call fcn.00492de0
mov eax, dword [esi + 0x3c]
mov esi, dword [esi + 0x38]
lea edx, [esi + esi*2]
shl edx, 4
lea ecx, [edx + eax - 0x30]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x14]
add edx, 0x20
and edx, 0xffffffc0
mov dword [ebp + 0x1c], edx
mov eax, dword [ecx + 0x18]
sub eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x24]
lea edx, [eax + ecx + 0x20]
and edx, 0xffffffc0
mov ecx, edi
mov dword [ebp + 0x24], edx
call fcn.0047db90
jmp 0x494c05
mov esi, dword [ebx + 0x80]
movsx eax, word [edi + 0x16]
mov edx, esi
mov ecx, edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], eax
call fcn.0047f970
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
mov edx, dword [ebx + 0x84]
mov eax, dword [edi + 0x4c]
mov ecx, esi
shl ecx, 5
push ecx
push edx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [edi + 0x28]
add esp, 0xc
test esi, esi
mov dword [edi + 0x48], esi
mov dword [esp + 0x34], 0
jbe 0x494c05
shl eax, 5
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov eax, dword [edi + 0x2c]
add eax, dword [esp + 0x1c]
movsx esi, word [edi + 0x16]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x78]
add ecx, 1
push ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x54], edx
mov edx, dword [eax]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], esi
call fcn.00494b80
test eax, eax
mov dword [esp + 0x14], eax
jne 0x494cd0
mov eax, dword [edi + 0x2c]
add eax, dword [esp + 0x1c]
test word [eax + 4], 0x200
mov dword [esp + 0x18], eax
jne 0x494edf
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [ebp + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x28], ecx
movsx ecx, word [edi + 0x16]
sub ecx, esi
test byte [eax + 4], 0xc8
mov dword [esp + 0x28], ecx
je 0x494f43
mov ecx, dword [edi + 0x30]
lea edx, [esi*8]
mov esi, dword [edi + 0x18]
add ecx, edx
add esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
lea ecx, [esi + edx*8]
cmp esi, ecx
mov dword [esp + 0x38], ecx
jae 0x494f3f
lea edx, [eax + 0x10]
mov ecx, esi
call fcn.0047f2f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x10
call fcn.0047f2f0
add dword [esp + 0x20], 8
mov eax, dword [esp + 0x18]
add esi, 8
cmp esi, dword [esp + 0x38]
jb 0x494f13
mov esi, dword [esp + 0x24]
test byte [eax + 4], 2
mov ecx, dword [eax + 8]
jne 0x494f83
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
add eax, ecx
cmp eax, esi
jae 0x495007
cmp edx, dword [esp + 0x28]
jae 0x495007
mov ecx, dword [edi + 0x18]
add edx, esi
add edx, dword [esp + 0x2c]
mov esi, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
sub esi, dword [ecx + edx*8]
sub eax, dword [ecx + edx*8 + 4]
lea edx, [ecx + edx*8]
jmp 0x494fa8
mov edx, dword [esp + 0x30]
call fcn.0047d6a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0xc]
lea esi, [eax + 0x20]
and esi, 0xffffffc0
call fcn.0047d6a0
add eax, 0x20
and eax, 0xffffffc0
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x68], edx
mov edx, dword [edi + 0x24]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x24]
lea ecx, [ecx + edx*8]
mov dx, word [esp + 0x28]
mov dword [esp + 0x60], ecx
mov word [esp + 0x5e], dx
push eax
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.0047f220
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], 0x20
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
jb 0x494e63
jmp 0x494c05
pop edi
pop esi
mov dword [esp + 0xc], 0x15
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 0x60
ret 8