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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [0x7e42ec], 0x300f43
mov dword [0x7e42ec], 0x300f44
test esi, esi
je 0x494e20
test byte [esi + 0x368], 0x20
jne 0x494e20
test ebx, ebx
je 0x494e20
mov eax, dword [ebx + 0x38]
test edi, edi
je 0x494e20
test eax, eax
je 0x494e20
cmp word [edi], 0
je 0x494e20
mov dword [0x7e42ec], 0x300f44
mov dword [0x7e42ec], 0x300f45
cmp byte [eax + 0x2e], 0
je 0x494e58
mov dword [0x7e42ec], 0x300f45
jmp 0x494e2a
mov dword [0x7e42ec], 0x300f44
xor eax, eax
xor ebx, ebx
mov dword [esp], eax
call fcn.0058d2e0
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0058d2e0
sub esp, 4
mov eax, ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [0x7e42ec], 0x300f45
mov dword [0x7e42ec], 0x300f4c
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov dword [0x7e42ec], 0x300f4d
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
mov dword [0x7e42ec], 0x300f4f
mov dword [0x7e42ec], 0x300f53
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1c
lea eax, [ebx + 0x1c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0058c3a0
sub esp, 0x10
mov dword [0x7e42ec], 0x300f55
mov eax, dword [ebx + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.005822a5
sub esp, 8
mov dword [0x7e42ec], 0x300f57
call fcn.0058d210
call fcn.0058d210
mov eax, dword [ebx + 0x38]
mov ebp, dword [eax + 0xc]
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x20], edx
call fcn.0058d170
mov dword [esp + 8], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.00589a90
sub esp, 0xc
call fcn.0058d170
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0058d280
sub esp, 8
mov dword [0x7e42ec], 0x300f58
call fcn.0058d210
call fcn.0058d210
mov eax, dword [ebx + 0x38]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov eax, dword [ebx + 0x44]
lea ebp, [eax - 1]
call fcn.0058d170
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x20]
mov dword [esp], edx
call fcn.00589ce0
sub esp, 0xc
call fcn.0058d170
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov dword [esp], eax
call fcn.0058d280
sub esp, 8
xor edx, edx
mov ebp, esi
mov esi, edx
jmp 0x495129
mov dword [0x7e42ec], 0x300f5e
mov dword [0x7e42ec], 0x300f6b
mov dword [0x7e42ec], 0x300f6c
test esi, esi
je 0x495201
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], edx
mov dword [0x7e42ec], 0x300f6d
call fcn.0058d210
call fcn.0058d210
call fcn.0058d170
mov dword [esp + 8], eax
mov ecx, edi
sub ecx, esi
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0058c0b0
sub esp, 0xc
call fcn.0058d170
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0058d280
sub esp, 8
mov dword [0x7e42ec], 0x300f6e
call fcn.0058d210
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0058d230
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0058d230
sub esp, 4
call fcn.0058d170
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov dword [esp], eax
call fcn.0058d280
sub esp, 8
mov dword [0x7e42ec], 0x300f6f
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00589cb0
sub esp, 4
add dword [ebx + 0x44], eax
mov dword [0x7e42ec], 0x300f70
mov eax, dword [ebx + 0x38]
mov edx, dword [esp + 0x24]
mov byte [eax + 0x20], dl
mov dword [0x7e42ec], 0x300f71
mov dword [0x7e42ec], 0x300f72
mov dword [0x7e42ec], 0x300f74
mov edx, 1
cmp dword [esp + 0x20], 1
je 0x495266
mov dword [0x7e42ec], 0x300f83
mov dword [0x7e42ec], 0x300f85
mov dword [0x7e42ec], 0x300f86
xor esi, esi
mov dword [0x7e42ec], 0x300f87
mov dword [0x7e42ec], 0x300f89
cmp word [edi], 0
je 0x495408
mov dword [0x7e42ec], 0x300f8b
mov dword [0x7e42ec], 0x300f8d
add edi, 2
mov dword [0x7e42ec], 0x300f8e
mov dword [0x7e42ec], 0x300f5a
mov dword [0x7e42ec], 0x300f5c
movzx ecx, word [edi]
mov dword [0x7e42ec], 0x300f5d
mov dword [0x7e42ec], 0x300f5d
test ecx, ecx
je 0x494fa0
mov dword [0x7e42ec], 0x300f5f
mov dword [0x7e42ec], 0x300f5f
cmp cx, word [ebp + 0x31e]
je 0x495220
mov dword [0x7e42ec], 0x300f61
mov dword [0x7e42ec], 0x300f61
cmp cx, word [ebp + 0x320]
je 0x495380
mov dword [0x7e42ec], 0x300f63
mov dword [0x7e42ec], 0x300f63
lea eax, [ecx - 0x20]
cmp eax, 0xe0
jbe 0x4953a0
cmp ecx, 9
je 0x4953a0
mov dword [0x7e42ec], 0x300f67
mov dword [0x7e42ec], 0x300f68
mov dword [0x7e42ec], 0x300f6b
mov dword [0x7e42ec], 0x300f6c
mov dword [esp + 0x20], 0xfffffffe
test esi, esi
jne 0x494fce
mov dword [0x7e42ec], 0x300f72
mov dword [0x7e42ec], 0x300f74
jmp 0x4950ca
mov dword [0x7e42ec], 0x300f60
mov dword [0x7e42ec], 0x300f6b
mov dword [0x7e42ec], 0x300f6c
mov dword [esp + 0x20], 1
test esi, esi
jne 0x494fce
mov dword [0x7e42ec], 0x300f72
mov dword [0x7e42ec], 0x300f74
mov dword [esp + 0x20], edx
mov dword [0x7e42ec], 0x300f75
mov esi, dword [ebx + 0x38]
mov dword [0x7e42ec], 0x300f77
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00489af0
sub esp, 8
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fstp qword [ecx + 0x10]
mov dword [0x7e42ec], 0x300f79
mov dword [esp], ebp
call fcn.00449410
sub esp, 4
mov dword [ebx + 0x38], eax
mov dword [0x7e42ec], 0x300f7a
add dword [ebx + 0x3c], 1
mov dword [0x7e42ec], 0x300f7b
add dword [ebx + 0x40], 1
mov dword [0x7e42ec], 0x300f7c
mov dword [ebx + 0x44], 1
mov dword [0x7e42ec], 0x300f7d
mov dword [ebx + 0x48], 0
mov dword [0x7e42ec], 0x300f80
mov ecx, dword [ebp + 0xfe]
fld qword [esi + 0x10]
fstp qword [esp + 0x40]
fld qword [esp + 0x40]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [0x7e42ec], 0x30066d
mov dword [0x7e42ec], 0x30066e
cmp ecx, eax
jg 0x4953f0
mov dword [0x7e42ec], 0x300670
mov dword [0x7e42ec], 0x300671
mov dword [ebp + 0xfe], eax
mov dword [0x7e42ec], 0x300f82
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0048da20
sub esp, 0xc
mov edx, dword [esp + 0x20]
jmp 0x4950ca
mov dword [0x7e42ec], 0x300f62
mov dword [0x7e42ec], 0x300f6b
mov edx, 2
jmp 0x4950ea
mov dword [0x7e42ec], 0x300f64
test esi, esi
je 0x4953d8
mov dword [0x7e42ec], 0x300f66
mov dword [0x7e42ec], 0x300f67
mov dword [0x7e42ec], 0x300f6b
jmp 0x4950ea
mov dword [0x7e42ec], 0x300f65
mov esi, edi
jmp 0x4953ae
mov dword [0x7e42ec], 0x30066f
mov eax, ecx
jmp 0x495343
mov esi, ebp
mov dword [0x7e42ec], 0x300f8a
mov dword [0x7e42ec], 0x300f90
call fcn.0058d210
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0058d230
sub esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.0058d230
sub esp, 4
call fcn.0058d170
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov dword [esp], eax
call fcn.0058d280
sub esp, 8
mov dword [0x7e42ec], 0x300f91
mov eax, dword [ebx + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00489af0
sub esp, 8
mov edx, dword [ebx + 0x38]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp qword [edx + 0x10]
mov dword [0x7e42ec], 0x300f93
mov edx, dword [ebp + 0xfe]
mov eax, dword [ebx + 0x38]
fld qword [eax + 0x10]
fstp qword [esp + 0x40]
fld qword [esp + 0x40]
fistp qword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [0x7e42ec], 0x30066d
mov dword [0x7e42ec], 0x30066e
cmp edx, eax
jg 0x4955d0
mov dword [0x7e42ec], 0x300670
mov dword [0x7e42ec], 0x300671
mov dword [esi + 0xfe], eax
mov dword [0x7e42ec], 0x300f94
mov dword [esp], esi
call fcn.0048b680
sub esp, 4
mov dword [esi + 0x106], eax
mov dword [0x7e42ec], 0x300f96
mov eax, dword [esp + 0x80]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0048da20
sub esp, 0xc
mov dword [0x7e42ec], 0x300f98
mov dword [esp + 0x18], 0x7e435c
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.0041bb80
sub esp, 0x1c
mov dword [0x7e42ec], 0x300f9a
mov edi, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x44]
mov dword [0x7e42ec], 0x30163d
mov dword [0x7e42ec], 0x30163e
mov eax, dword [esi + 0x21a]
mov dword [esp], eax
call fcn.005822bf
sub esp, 4
cmp eax, 1
jg 0x4955e8
mov dword [0x7e42ec], 0x30163e
mov dword [0x7e42ec], 0x300f9c
mov eax, dword [esp + 0x38]
mov ebx, 1
jmp 0x494e2e
mov dword [0x7e42ec], 0x30066f
mov eax, edx
jmp 0x4954dd
mov edx, dword [esp + 0x2c]
sub ebp, edx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x28]
sub edi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00489eb0
sub esp, 0x14
jmp 0x4955b3