Function at 0x494050
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527fc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004937f0
xor edi, edi
mov dword [esp + 0x2c], 0x5315e0
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x70], edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jne 0x4940b1
mov dword [esp + 0x38], edi
xor esi, esi
jmp 0x4940d0
lea eax, [esi*8]
push eax
call fcn.0051af44
add esp, 4
mov dword [esp + 0x30], eax
push esi
push eax
call fcn.00448920
mov dword [esp + 0x38], esi
lea eax, [esi - 1]
mov dword [esp + 0x34], esi
cmp eax, edi
jl 0x49410e
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x98]
mov edx, dword [edx + 0x20]
mov esi, dword [ecx + eax*8 + 4]
lea ecx, [ecx + eax*8]
shl esi, 8
mov ecx, dword [ecx]
mov esi, dword [esi + edx]
shl ecx, 8
fld qword [esi + 0x20]
mov edx, dword [ecx + edx]
mov ecx, dword [esp + 0x30]
dec eax
fadd qword [edx + 0x20]
fstp qword [ecx + eax*8 + 8]
jns 0x4940db
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x2c]
mov ecx, ebx
lea eax, [ebx + 0x94]
push eax
push edx
call fcn.00493b30
mov esi, dword [ebp + 8]
lea eax, [esi + esi*4]
lea ecx, [eax*4 + 4]
push ecx
call fcn.0051af44
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x70], 1
je 0x494166
push fcn.00403e20
push fcn.00407a00
lea edi, [eax + 4]
push esi
push 0x14
push edi
mov dword [eax], esi
call fcn.0051bfa4
mov dword [esp + 0x14], edi
jmp 0x49416e
mov dword [esp + 0x14], 0
mov ecx, ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x412e8480
call fcn.00492250
mov ebx, eax
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x24]
dec edx
js 0x4942fb
mov esi, dword [eax + 0x20]
mov ecx, edx
fld qword [esp + 0x24]
mov edi, ebx
shl ecx, 8
shl edi, 8
add ecx, esi
mov esi, dword [ecx]
fadd qword [esi + 0x20]
fld qword [esi + 0x20]
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x4941d2
fld qword [esi + 0x20]
fstp qword [esp + 0x1c]
sub edx, ebx
sub ecx, edi
test edx, edx
jge 0x4941b8
mov esi, dword [ebp + 8]
fild dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x40], 0x5315e0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
fdivr st(1)
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
fld qword [esp + 0x1c]
fmul qword [0x531170]
faddp st(1)
fstp qword [esp + 0x24]
fstp st(0)
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 2
call fcn.004fc6e0
lea ecx, [esi - 1]
cmp esi, ebx
mov dword [esp + 0x18], ecx
je 0x494243
xor eax, eax
inc ecx
mov edx, dword [esp + 0x44]
add eax, 8
dec ecx
mov dword [edx + eax - 8], ebx
mov edx, dword [esp + 0x44]
mov dword [edx + eax - 4], ebx
jne 0x49422d
mov eax, dword [esp + 0x34]
lea edi, [eax - 1]
test edi, edi
jl 0x494315
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
fld qword [ecx + edi*8]
fadd qword [esi + ebx*8]
fstp qword [esi + ebx*8]
mov ecx, dword [esp + 0x44]
fld qword [ecx + ebx*8]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x494304
mov edx, dword [esp + 0xc]
lea ecx, [ebx + ebx*4]
mov eax, dword [edx + 0x98]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + edi*8]
lea esi, [edx + ecx*4]
push eax
mov ecx, dword [esi + 8]
push ecx
mov ecx, esi
call fcn.004a6b80
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x98]
mov eax, dword [ecx + edi*8 + 4]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.004a6b80
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x44]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x4942f2
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
lea edx, [ecx*8]
fld qword [esi + edx]
fcomp qword [esi + eax]
fnstsw ax
test ah, 1
je 0x4942ea
mov ebx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 8]
inc ecx
cmp ecx, eax
jl 0x4942cc
dec edi
jns 0x494256
jmp 0x494315
fld qword [esp + 0x24]
jmp 0x4941dd
mov edx, dword [esp + 0x30]
fld qword [ecx + ebx*8]
fsub qword [edx + edi*8]
test edi, edi
fstp qword [ecx + ebx*8]
jge 0x494332
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x9c]
and ecx, 0x80000001
jns 0x49432c
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x49480b
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x9c]
and edx, 0x80000001
jns 0x494349
dec edx
or edx, 0xfffffffe
inc edx
je 0x4944c1
lea esi, [edi + edi + 3]
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x49438c
mov ecx, dword [eax + 0x98]
lea esi, [eax + 0x94]
test ecx, ecx
je 0x49437f
push ecx
call fcn.0051aee4
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esi + 4], 0
xor ecx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ecx
jmp 0x4944a6
mov edx, dword [eax + 0x98]
lea edi, [eax + 0x94]
test edx, edx
jne 0x4943c1
lea eax, [esi*4]
push eax
call fcn.0051af44
add esp, 4
mov dword [edi + 4], eax
push esi
push eax
call fcn.0047d930
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jmp 0x4944a2
mov ecx, dword [edi + 0xc]
cmp esi, ecx
jg 0x4943e9
mov ecx, dword [edi + 8]
cmp esi, ecx
jle 0x4943e1
mov eax, esi
sub eax, ecx
lea ecx, [edx + ecx*4]
push eax
push ecx
call fcn.0047d930
mov eax, dword [esp + 0xc]
mov dword [edi + 8], esi
jmp 0x4944a6
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x494414
mov eax, dword [edi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x494408
mov eax, 4
jmp 0x494414
cmp eax, 0x400
jle 0x494414
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x494422
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x10]
lea eax, [edx*4]
push eax
call fcn.0051af44
mov ecx, dword [esp + 0x10]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], eax
mov esi, dword [ecx + 0x98]
lea edx, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, edi
lea esi, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.0047d930
mov eax, dword [esi + 4]
push eax
call fcn.0051aee4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x9c]
mov edx, dword [eax + 0x98]
mov eax, dword [eax + 0xdc]
mov dword [edx + ecx*4 - 4], eax
jmp 0x49460e
lea esi, [edi + edi + 2]
test esi, esi
mov dword [esp + 0x24], esi
jne 0x4944fe
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x98]
lea esi, [ecx + 0x94]
test eax, eax
je 0x4944f1
push eax
call fcn.0051aee4
add esp, 4
mov dword [esi + 4], 0
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
jmp 0x49460e
mov edx, dword [esp + 0xc]
lea edi, [edx + 0x94]
mov edx, dword [edx + 0x98]
test edx, edx
jne 0x494537
lea eax, [esi*4]
push eax
call fcn.0051af44
add esp, 4
mov dword [edi + 4], eax
push esi
push eax
call fcn.0047d930
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jmp 0x49460e
mov ecx, dword [edi + 0xc]
cmp esi, ecx
jg 0x49455b
mov eax, dword [edi + 8]
cmp esi, eax
jle 0x494553
mov ecx, esi
lea edx, [edx + eax*4]
sub ecx, eax
push ecx
push edx
call fcn.0047d930
mov dword [edi + 8], esi
jmp 0x49460e
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x494586
mov eax, dword [edi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x49457a
mov eax, 4
jmp 0x494586
cmp eax, 0x400
jle 0x494586
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x494594
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.0051af44
mov edx, dword [esp + 0x10]
mov edi, eax
add edx, 0x94
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 8]
mov esi, dword [edx + 4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
mov edx, edi
lea esi, [ecx + 0x94]
mov ecx, dword [ecx + 0x9c]
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.0047d930
mov eax, dword [esi + 4]
push eax
call fcn.0051aee4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x9c]
test esi, esi
mov dword [esp + 0x24], esi
jne 0x494644
mov eax, dword [esp + 0x30]
test eax, eax
je 0x494635
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x30], esi
xor esi, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
jmp 0x494744
mov edx, dword [esp + 0x30]
test edx, edx
jne 0x494674
lea ecx, [esi*8]
push ecx
call fcn.0051af44
add esp, 4
mov dword [esp + 0x30], eax
push esi
push eax
call fcn.00448920
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
jmp 0x494744
mov ecx, dword [esp + 0x38]
cmp esi, ecx
jg 0x49469b
mov eax, dword [esp + 0x34]
cmp esi, eax
jle 0x494692
mov ecx, esi
lea edx, [edx + eax*8]
sub ecx, eax
push ecx
push edx
call fcn.00448920
mov dword [esp + 0x34], esi
jmp 0x494744
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4946c8
mov eax, dword [esp + 0x34]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4946bc
mov eax, 4
jmp 0x4946c8
cmp eax, 0x400
jle 0x4946c8
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x4946d6
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call fcn.0051af44
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edi, eax
add esp, 4
lea ecx, [edx*8]
mov dword [esp + 0x1c], eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, esi
sub edx, ecx
lea eax, [eax + ecx*8]
push edx
push eax
call fcn.00448920
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0051aee4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
lea eax, [esi - 1]
test eax, eax
jl 0x49477a
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
mov edx, dword [ecx + 0x98]
mov ecx, dword [ecx + 0x20]
mov edx, dword [edx + eax*4]
shl edx, 8
dec eax
mov edx, dword [edx + ecx]
mov ecx, dword [edx + 0x20]
mov dword [esi + eax*8 + 8], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [edx + 0x24]
mov dword [ecx + eax*8 + 0xc], edx
jns 0x49474b
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x2c]
mov ecx, esi
lea eax, [esi + 0x94]
push eax
push edx
call fcn.00493ab0
mov edi, dword [esi + 0x9c]
dec edi
js 0x49480b
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
fld qword [eax + edi*8]
fadd qword [edx + ebx*8]
fstp qword [edx + ebx*8]
mov edx, dword [ecx + 0x98]
lea ecx, [ebx + ebx*4]
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [edx + ecx*4]
mov edx, dword [ecx + 8]
push edx
call fcn.004a6b80
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, 1
xor ebx, ebx
cmp eax, ecx
jle 0x494808
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
lea esi, [ecx*8]
fld qword [esi + edx]
fcomp qword [eax + edx]
fnstsw ax
test ah, 1
je 0x494800
mov ebx, ecx
mov dword [esp + 0x10], esi
mov eax, dword [ebp + 8]
inc ecx
cmp ecx, eax
jl 0x4947e2
dec edi
jns 0x49479e
xor esi, esi
mov dword [esp + 0x54], 0x5315ac
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov edi, dword [ebp + 8]
mov byte [esp + 0x70], 3
cmp edi, esi
jne 0x49483b
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
jmp 0x49485e
lea ecx, [edi*4]
push ecx
call fcn.0051af44
add esp, 4
mov dword [esp + 0x58], eax
push edi
push eax
call fcn.0047d930
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
cmp edi, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jle 0x4948e3
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0xc]
push ebx
mov dword [edx + esi*4], esi
mov eax, dword [esp + 0x48]
lea edi, [eax + esi*8]
call fcn.00492e80
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
fstp qword [edi]
mov edx, dword [ecx + 0x9c]
lea edi, [ecx + 0x94]
push edx
mov ecx, ebx
call fcn.004ecdd0
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, dword [ebx + 4]
mov edx, eax
dec eax
test edx, edx
je 0x4948c8
inc eax
mov edx, dword [edi]
add edi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x4948bb
mov eax, dword [esp + 0x44]
inc esi
fld qword [esp + 0x24]
fadd qword [eax + esi*8 - 8]
mov eax, dword [ebp + 8]
add ebx, 0x14
cmp esi, eax
fstp qword [esp + 0x24]
jl 0x494876
mov ecx, dword [ebp + 8]
lea eax, [ecx + ecx]
cmp eax, 0xa
jge 0x4948f9
mov ebx, 0xa
mov dword [esp + 0x10], ebx
jmp 0x494907
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x4949bb
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x54]
lea eax, [esp + 0x40]
push edx
push eax
mov ecx, esi
call fcn.00493ab0
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
fld qword [ecx + edi*8]
fcomp qword [esi + 0xc8]
fnstsw ax
test ah, 1
je 0x49495e
lea ecx, [esp + 0x40]
push ecx
call fcn.00494c90
fcom qword [esp + 0x28]
add esp, 4
fnstsw ax
test ah, 1
je 0x494a9a
fsub qword [0x531798]
mov ecx, dword [esp + 0x44]
fstp qword [esp + 0x24]
xor esi, esi
test edi, edi
jle 0x4949a8
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
jmp 0x494972
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + edi*4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
push eax
mov eax, dword [edx + esi*4]
lea edx, [eax + eax*4]
lea eax, [ebx + edx*4]
lea edx, [ecx + edi*8]
push eax
lea eax, [ecx + esi*8]
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.00495780
test al, al
jne 0x4949a4
inc esi
cmp esi, edi
jl 0x49496e
mov ebx, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
je 0x4949bb
dec ebx
test ebx, ebx
mov dword [esp + 0x10], ebx
jg 0x494907
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
cmp eax, 0x19
jge 0x4949d1
mov edi, 0x19
mov dword [esp + 0x10], edi
jmp 0x4949df
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jle 0x494a6f
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x40]
push ecx
push edx
mov ecx, esi
call fcn.00493ab0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
fld qword [ecx + eax*8]
fcomp qword [esi + 0xc8]
fnstsw ax
test ah, 1
jne 0x494aa0
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x494a5c
mov ebx, dword [esp + 0x14]
mov edi, eax
jmp 0x494a26
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + edi*4]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
push eax
mov eax, dword [edx + esi*4]
lea edx, [eax + eax*4]
lea eax, [ebx + edx*4]
lea edx, [ecx + edi*8]
push eax
lea eax, [ecx + esi*8]
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.004958b0
test al, al
jne 0x494a58
inc esi
cmp esi, edi
jl 0x494a22
mov edi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
je 0x494a6f
dec edi
test edi, edi
mov dword [esp + 0x10], edi
jg 0x4949df
mov edi, dword [ebp + 8]
test edi, edi
jle 0x494be5
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
push esi
push 0x55a894
mov ecx, ebx
call fcn.00492ca0
add esi, 0x14
dec edi
jne 0x494a82
jmp 0x494be9
mov ecx, dword [esp + 0x44]
fstp st(0)
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
cmp eax, 0x19
jle 0x494ab5
mov dword [esp + 0x10], 0x19
jmp 0x494abd
test eax, eax
mov dword [esp + 0x10], eax
jle 0x494b2b
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x494b05
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
jmp 0x494ad3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + esi*4]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
push eax
mov eax, dword [edx]
lea edx, [eax + eax*4]
lea eax, [edi + edx*4]
lea edx, [ecx + esi*8]
push eax
push edx
push ecx
mov ecx, ebx
call fcn.00495ae0
test al, al
jne 0x494aff
dec esi
test esi, esi
jg 0x494acf
mov ecx, dword [esp + 0x44]
test esi, esi
je 0x494b2b
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00493ab0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jg 0x494abd
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test esi, esi
jl 0x494b57
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + esi*4]
lea eax, [eax + eax*4]
lea ecx, [edi + eax*4]
push ecx
mov ecx, ebx
call fcn.00491df0
dec esi
jns 0x494b3b
mov ecx, dword [esp + 0x44]
test edi, edi
je 0x494b68
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], 0x5315ac
mov eax, dword [esp + 0x58]
mov byte [esp + 0x70], 7
test eax, eax
je 0x494b8a
push eax
call fcn.0051aee4
mov ecx, dword [esp + 0x48]
add esp, 4
mov esi, 0x53138c
mov edi, 0x5315e0
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], edi
test ecx, ecx
mov byte [esp + 0x70], 8
je 0x494bae
push ecx
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], 9
test eax, eax
je 0x494bcf
push eax
call fcn.0051aee4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x40]
mov ecx, ebx
push eax
push 0x55a880
call fcn.00492d90
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x494c09
mov edx, dword [ecx]
push 3
call dword [edx + 4]
mov dword [esp + 0x54], 0x5315ac
mov eax, dword [esp + 0x58]
mov byte [esp + 0x70], 4
test eax, eax
je 0x494c27
push eax
call fcn.0051aee4
add esp, 4
mov esi, 0x53138c
mov edi, 0x5315e0
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x44]
mov byte [esp + 0x70], 5
test eax, eax
je 0x494c4f
push eax
call fcn.0051aee4
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], 6
test eax, eax
je 0x494c70
push eax
call fcn.0051aee4
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4