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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
push esi
push edi
lea ecx, [ebx + 0x1a0]
call fcn.00636d70
xor esi, esi
push 0x1820
push esi
push ebx
mov dword [ebx + 0x7a8], esi
mov dword [ebx + 0x798], esi
mov dword [ebx + 0x79c], esi
mov dword [ebx + 0x7a0], esi
mov dword [ebx + 0x7a4], esi
mov dword [ebx + 0x7ac], esi
call fcn.00626100
mov al, byte [ebp + 0xc]
mov byte [ebx + 0x1814], al
mov eax, dword [0x85e030]
add esp, 0xc
cmp eax, esi
mov dword [0x84dc04], 0x408020
mov dword [0x75560c], esi
jne 0x408492
call fcn.006287f0
mov dword [0x85e020], eax
mov eax, dword [0x85e034]
inc eax
mov dword [0x85e024], edx
mov dword [0x85e030], 1
mov dword [0x85e034], eax
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebx + 8], 1
mov dword [ebx + 0x190], eax
mov dword [ebx + 0x194], eax
mov dword [ebx + 0x774], eax
mov dword [ebx + 0x790], ecx
cmp dword [0x940b38], esi
je 0x4084e4
mov edi, dword [0x940b30]
mov edx, dword [0x940b28]
mov eax, dword [0x940b34]
mov ecx, dword [0x940b2c]
sub edi, edx
sub eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
jmp 0x4084f9
mov edx, dword [0x940b3c]
mov eax, dword [0x940b40]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov edi, edx
cvtsi2ss xmm1, eax
lea eax, [ebx + 0x110]
push eax
push esi
cvtsi2ss xmm0, edi
push esi
movss dword [ebx + 0x120], xmm0
movss dword [ebx + 0x12c], xmm1
movss dword [ebx + 0x130], xmm0
movss dword [ebx + 0x124], xmm1
movss dword [ebx + 0x11c], xmm0
movss dword [ebx + 0x128], xmm1
movss dword [ebx + 0x134], xmm0
movss dword [ebx + 0x138], xmm1
mov ecx, dword [0x80edd8]
mov edx, dword [ecx]
push esi
push ecx
call dword [edx + 0x48]
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
lea esi, [ebx + 0x114]
push esi
push eax
call dword [ecx + 0xa0]
mov eax, dword [esi]
mov dword [ebx + 0xd8], eax
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x44]
push esi
push 0
push 0x15
push 1
push 1
push edx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x4085b4
mov eax, dword [esi]
lea ecx, [ebx + 0xb0]
push ecx
push 0
push esi
call dword [eax + 0x48]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x78]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x40861a
mov edx, dword [esi]
lea edi, [ebx + 0xe4]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push edi
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x7c]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x408681
mov edx, dword [esi]
lea edi, [ebx + 0xe8]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push 0xffffffffffffffff
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x80]
push esi
push 0
push 0x15
push 1
push 1
push ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x4086ea
mov edx, dword [esi]
lea edi, [ebx + 0xec]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [edi]
push eax
xor edi, edi
mov esi, 0x85ec00
call fcn.00408230
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push 0x3f800000
push edi
push 1
push edi
push edi
push eax
call dword [ecx + 0xac]
mov edi, dword [esp + 0x18]
push 0
lea esi, [ebx + 0x40]
push esi
push 1
push 0x1c
push 0
push 1
push 0x40
push 0x40
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0x40
push eax
mov dword [esp + 0x58], 8
call dword [edx + 0x60]
cmp dword [esi], 0
jne 0x408740
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0
push esi
push 1
push 0x15
push 0
push 1
push 0x40
push 0x40
push 0x40
push eax
mov dword [esp + 0x58], 0x20
call dword [ecx + 0x60]
mov esi, dword [esi]
test esi, esi
je 0x4088bc
mov edx, dword [esi]
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
push esi
call dword [edx + 0x4c]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], 0
jmp 0x408770
cvtsi2ss xmm0, dword [esp + 0x1c]
subss xmm0, dword [0x738dd0]
xor edi, edi
movaps xmm1, xmm0
mulss xmm1, xmm0
mov dword [esp + 0x24], edi
movss dword [esp + 0x34], xmm1
jmp 0x4087a0
movss xmm1, dword [esp + 0x34]
lea esp, [esp]
cvtsi2ss xmm0, edi
subss xmm0, dword [0x738dd0]
movaps xmm2, xmm0
mulss xmm2, xmm0
addss xmm2, xmm1
mov dword [esp + 0x20], 0
movss dword [esp + 0x38], xmm2
jmp 0x4087d0
fild dword [esp + 0x20]
fsub dword [0x738dd0]
fld st(0)
fmulp st(1)
fadd dword [esp + 0x38]
fsqrt
fmul dword [0x738dcc]
fst dword [esp + 0x28]
fld dword [0x738a54]
fcompi st(1)
fstp st(0)
jbe 0x4087ff
xorps xmm0, xmm0
jmp 0x408818
movss xmm1, dword [0x7389bc]
movss xmm0, dword [esp + 0x28]
comiss xmm0, xmm1
movss dword [esp + 0x2c], xmm1
ja 0x40881e
movss dword [esp + 0x2c], xmm0
fld dword [esp + 0x2c]
fmul dword [0x7389b8]
fsubr dword [0x7389b8]
call fcn.00686364
cmp dword [esp + 0x30], 0x20
mov ecx, dword [esp + 0x44]
jne 0x408864
mov edx, dword [esp + 0x48]
imul ecx, edi
imul edx, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi], al
mov byte [ecx + esi + 1], al
mov byte [ecx + esi + 2], al
mov byte [ecx + esi + 3], al
jmp 0x40887b
mov edx, dword [esp + 0x20]
imul ecx, edi
mov edi, dword [esp + 0x48]
imul edi, dword [esp + 0x1c]
add ecx, edx
add edi, ecx
mov byte [edi + esi], al
mov edi, dword [esp + 0x24]
inc edx
cmp edx, 0x40
mov dword [esp + 0x20], edx
jl 0x4087d0
inc edi
cmp edi, 0x40
mov dword [esp + 0x24], edi
jl 0x408793
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x40
mov dword [esp + 0x1c], eax
jl 0x408770
mov eax, dword [ebx + 0x40]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x50]
mov edi, dword [esp + 0x18]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a1c]
lea eax, [ebx + 0x48]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a1c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40891c
mov ecx, dword [eax]
lea edx, [ebx + 0xb4]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a30]
lea eax, [ebx + 0x4c]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a30]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40897c
mov ecx, dword [eax]
lea edx, [ebx + 0xb8]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a7c]
lea eax, [ebx + 0x50]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x4089dc
mov ecx, dword [eax]
lea edx, [ebx + 0xbc]
push edx
push 0
push eax
call dword [ecx + 0x48]
fld dword [ebx + 0x138]
push 0
fmul dword [0x738a7c]
lea eax, [ebx + 0x54]
push eax
push 0
mov dword [eax], 0
mov ecx, dword [0x80edd8]
mov esi, dword [ecx]
push 0x15
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov edx, dword [0x80edd8]
push eax
push edx
call dword [esi + 0x5c]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x408a3c
mov ecx, dword [eax]
lea edx, [ebx + 0xc0]
push edx
push 0
push eax
call dword [ecx + 0x48]
mov edx, dword [esp + 0x14]
push 0
lea esi, [ebx + 0x58]
push esi
push 0
push 0x15
push 1
push 1
push edx
mov dword [ebx + 0x70], 0
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x5c]
mov eax, dword [esi]
test eax, eax
je 0x408a7d
mov ecx, dword [eax]
lea edx, [ebx + 0xc4]
push edx
push 0
push eax
call dword [ecx + 0x48]
mov eax, dword [0x7caaf8]
mov ecx, eax
shl eax, 2
mov edx, dword [eax + 0x7c5cd8]
push 0
mov dword [0x7caaf8], edx
mov edx, dword [esi]
lea esi, [ebx + 0x74]
push esi
push 0
push 0x15
push 1
push 1
mov dword [eax + 0x7c5cd8], edx
push 0x80
mov dword [ebx + 0x190], ecx
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0x80
push eax
call dword [ecx + 0x5c]
mov eax, dword [esi]
test eax, eax
je 0x408adf
mov edx, dword [eax]
lea ecx, [ebx + 0xe0]
push ecx
push 0
push eax
call dword [edx + 0x48]
mov eax, dword [0x7caaf8]
mov ecx, eax
shl eax, 2
mov edx, dword [eax + 0x7c5cd8]
push 0
mov dword [0x7caaf8], edx
mov edx, dword [esi]
mov dword [eax + 0x7c5cd8], edx
fld dword [ebx + 0x138]
fmul dword [0x738a7c]
lea esi, [ebx + 0x5c]
push esi
push 0
mov dword [ebx + 0x194], ecx
push 0x15
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov edi, dword [eax]
push 1
push 1
call fcn.00686364
fld dword [ebx + 0x134]
fmul dword [0x738a7c]
push eax
call fcn.00686364
mov ecx, dword [0x80edd8]
push eax
push ecx
call dword [edi + 0x5c]
mov esi, dword [esi]
test esi, esi
je 0x408bd8
mov edx, dword [esi]
lea edi, [ebx + 0xc8]
push edi
push 0
push esi
call dword [edx + 0x48]
mov eax, dword [0x85ec20]
mov esi, dword [edi]
cmp esi, dword [eax*4 + 0x85ec00]
jne 0x408b80
mov ecx, dword [eax*4 + 0x85ec10]
test ecx, ecx
je 0x408bbe
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x94]
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x9c]
mov eax, dword [0x85ec20]
mov dword [eax*4 + 0x85ec00], esi
mov ecx, dword [0x85ec20]
mov dword [ecx*4 + 0x85ec10], 0
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push 0
push 0
push 0
push 1
push 0
push 0
push eax
call dword [edx + 0xac]
lea esi, [ebx + 0x84]
mov edi, 8
push 0
push esi
push 0
push 0x15
push 1
push 1
push 0x100
mov dword [esi], 0
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push 0x100
push eax
call dword [ecx + 0x5c]
mov eax, dword [esi]
test eax, eax
je 0x408c1b
mov edx, dword [eax]
lea ecx, [esi + 0x6c]
push ecx
push 0
push eax
call dword [edx + 0x48]
add esi, 4
dec edi
jne 0x408be3
mov eax, dword [0x85ec20]
mov esi, dword [ebx + 0x110]
cmp esi, dword [eax*4 + 0x85ec00]
mov edi, dword [ebx + 0x114]
jne 0x408c44
cmp edi, dword [eax*4 + 0x85ec10]
je 0x408c7d
mov eax, dword [0x80edd8]
mov edx, dword [eax]
push esi
push 0
push eax
call dword [edx + 0x94]
mov eax, dword [0x80edd8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x9c]
mov edx, dword [0x85ec20]
mov dword [edx*4 + 0x85ec00], esi
mov eax, dword [0x85ec20]
mov dword [eax*4 + 0x85ec10], edi
mov eax, dword [ebx + 0x7a8]
test eax, eax
jne 0x408cf8
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x38]
mov edi, dword [0x7c1978]
mov esi, dword [0x7c197c]
mov ecx, dword [esp + 0x3c]
sub eax, edi
sbb ecx, esi
mov esi, dword [0x956cac]
cmp ecx, esi
jg 0x408cca
mov edx, dword [0x956ca8]
jl 0x408cc0
cmp eax, edx
jae 0x408cca
add edx, 1
adc esi, 0
mov eax, edx
mov ecx, esi
mov dword [0x956ca8], eax
mov dword [ebx + 0x798], eax
mov eax, dword [ebx + 0x7ac]
inc eax
mov dword [0x956cac], ecx
mov dword [ebx + 0x79c], ecx
mov dword [ebx + 0x7a8], 1
mov dword [ebx + 0x7ac], eax
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret 8