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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9700
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x503298]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x54]
cmp byte [esi], 0
jne 0x49938e
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x49938e
mov ecx, ebx
call fcn.004618ee
test byte [ebx + 0x60], 2
je 0x498eca
test eax, eax
je 0x498ec6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x38]
test al, al
jne 0x498eca
mov al, 1
jmp 0x498ecc
xor al, al
cmp dword [edi + 0x10], 0
mov byte [esp + 0x2c], al
jne 0x498eff
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x18], 0
jle 0x498eff
cmp dword [ecx + 0x1c], 0
jle 0x498eff
test al, al
je 0x498eff
call fcn.00499490
test al, al
jne 0x498efb
mov eax, dword [edi + 4]
cmp dword [eax + 0xc], 0
je 0x498eff
mov cl, 1
jmp 0x498f01
xor cl, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], 0
mov byte [esi], 1
and dword [esp + 0x78], 0
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
mov edx, dword [edi + 0x48]
mov ebx, eax
cmovl ebx, dword [edi + 0x50]
add ebx, edx
mov dword [esp + 0x28], ebx
test cl, cl
je 0x4991d7
mov eax, ebx
imul eax, eax, 5
lea ecx, [edi + 0x44]
mov dword [esp + 0x18], eax
call fcn.0041f41f
xor edx, 0x2342dfa7
mov dword [esp + 0x1c], eax
push 0
mov eax, edx
cdq
push 0x65
push edx
push eax
call fcn.004adcf0
mov esi, eax
mov eax, dword [edi + 0x4c]
mov ecx, edx
cdq
push 0
add esi, eax
push 0x65
adc ecx, edx
push ecx
push esi
call fcn.004adcf0
mov esi, eax
mov eax, dword [edi + 0x50]
mov ecx, edx
cdq
push 0
add esi, eax
push 0x10001
adc ecx, edx
push ecx
push esi
call fcn.004adcf0
mov ecx, dword [esp + 0x1c]
add ecx, eax
push 0
pop eax
adc eax, edx
push eax
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.0042889c
pop ecx
pop ecx
mov byte [esp + 0x78], 1
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x499072
push 1
push esi
push esi
push 2
lea ecx, [esp + 0x44]
call fcn.00427da2
push eax
lea ecx, [esp + 0x18]
call fcn.004090af
lea ecx, [esp + 0x34]
call fcn.0041740f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
call fcn.004263c4
lea ecx, [esp + 0x4c]
call fcn.00421909
lea ecx, [ebx + ebx]
mov eax, esi
sub eax, ecx
movd xmm3, eax
mov byte [esp + 0x78], 3
mov eax, dword [edi + 0x50]
add eax, ebx
movd xmm2, eax
mov eax, dword [edi + 0x4c]
add eax, ebx
movd xmm1, eax
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
push ecx
lea ecx, [esp + 0x50]
movss dword [esp], xmm3
call fcn.00421f56
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x44]
call fcn.00449cfb
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004288cb
pop ecx
pop ecx
lea ecx, [esp + 0x4c]
call fcn.0040971a
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 1
call fcn.004263f8
xor ecx, ecx
push ecx
push ecx
lea eax, [ebx + ebx]
push eax
push ebx
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
lea eax, [ebx + ebx]
sub esi, eax
push esi
push 0
push eax
push ebx
push 1
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
lea eax, [ebx + ebx]
push eax
push 0
push ebx
push ebx
push 2
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
mov eax, dword [esp + 0x18]
push 0
sub eax, ebx
push eax
mov dword [esp + 0x20], eax
lea eax, [ebx + ebx]
push eax
push ebx
push 3
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
push esi
push dword [esp + 0x1c]
lea eax, [ebx + ebx]
push eax
push ebx
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
lea eax, [ebx + ebx]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push ebx
push ebx
push 5
push eax
mov ecx, edi
call fcn.004993b5
push 0
push ebx
push ebx
push ebx
push 6
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
push 0
push esi
push ebx
push ebx
push 7
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
push 0
lea eax, [ebx + ebx]
push eax
push ebx
push ebx
push 8
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push ebx
push ebx
push ebx
push 9
push eax
mov ecx, edi
call fcn.004993b5
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push esi
push ebx
push ebx
push 0xa
push eax
mov ecx, edi
call fcn.004993b5
push dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ebx
push ebx
push 0xb
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004993b5
xor esi, esi
push 0x78
call fcn.004a5065
pop ecx
mov dword [esp + 0x34], eax
mov byte [esp + 0x78], 4
test eax, eax
je 0x4991ac
lea ecx, [edi + 0x14]
push ecx
push esi
push dword [edi + 4]
mov ecx, eax
call fcn.00498a83
jmp 0x4991ae
xor eax, eax
push eax
lea ecx, [edi + 8]
mov byte [esp + 0x7c], 1
call fcn.00448e8f
inc esi
cmp esi, 4
jl 0x499186
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0
call fcn.0041740f
mov ebx, dword [esp + 0x28]
lea esi, [edi + 0x54]
mov ecx, dword [edi + 0x10]
cmp ecx, 4
jl 0x499378
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x14]
sub edx, ebx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
dec ecx
lea eax, [eax + ebx*2]
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
js 0x499378
cmp ecx, dword [edi + 0x10]
jae 0x49921f
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*4]
jmp 0x499221
xor eax, eax
push eax
lea ecx, [esp + 0x1c]
call fcn.0049ea5c
mov byte [esp + 0x78], 5
mov esi, dword [esp + 0x18]
test esi, esi
je 0x499241
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x499243
xor eax, eax
test eax, eax
je 0x499269
test esi, esi
je 0x499254
mov edx, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x499256
xor edx, edx
mov ecx, dword [edi + 4]
call fcn.00461c16
movzx eax, al
push eax
mov ecx, edx
call fcn.00461b6b
test esi, esi
je 0x499276
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x499278
xor eax, eax
test eax, eax
je 0x499294
test esi, esi
je 0x499289
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x49928b
xor ecx, ecx
mov eax, dword [ecx]
push dword [esp + 0x2c]
call dword [eax + 0x28]
test esi, esi
je 0x4992a1
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x4992a3
xor eax, eax
test eax, eax
je 0x499342
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x49931e
dec eax
je 0x499305
dec eax
je 0x4992e7
dec eax
jne 0x499342
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x14]
test esi, esi
je 0x4992d7
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x4992d9
xor eax, eax
push ebx
push dword [esp + 0x24]
push ecx
push dword [esp + 0x28]
mov ecx, eax
jmp 0x49933d
test esi, esi
je 0x4992f4
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x4992f6
xor ecx, ecx
push ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x28]
jmp 0x49933d
test esi, esi
je 0x499312
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x499314
xor ecx, ecx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x20]
jmp 0x499333
test esi, esi
je 0x49932b
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x49932d
xor ecx, ecx
mov eax, dword [esp + 0x1c]
sub eax, ebx
push dword [esp + 0x30]
push ebx
push dword [esp + 0x2c]
push eax
call fcn.00461e47
test esi, esi
je 0x49934f
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x18]
jmp 0x499351
xor eax, eax
test eax, eax
je 0x4993a1
mov byte [esp + 0x78], 0
test esi, esi
je 0x499365
mov ecx, esi
call fcn.00404560
mov ecx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x28], ecx
jns 0x499212
mov esi, dword [esp + 0x38]
or dword [esp + 0x78], 0xffffffff
cmp byte [esp + 0x13], 0
mov byte [esi], 0
je 0x49938e
mov ecx, edi
call fcn.00499430
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4993ac
mov ecx, esi
call fcn.00404560
mov eax, dword [esp + 0x38]
mov byte [eax], 0
jmp 0x49938e