Function at 0x41fb60
Capabilities:
Get file size
Hash data using sha1
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x204], ebx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x200], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x41fc03
mov eax, dword [edi]
push ecx
push dword [edx + 0x40]
mov dword [ebp - 0x1e8], 0x32
push ecx
lea ecx, [ebp - 0x1e8]
push ecx
push dword [edi + 0x20]
mov ecx, dword [eax + 0x4ec]
call fcn.004797e0
mov ecx, eax
mov eax, dword [ebp - 0x1e8]
inc eax
mov dword [ebp - 0x204], eax
test ecx, ecx
jne 0x41fbed
mov edx, dword [ebp - 0x200]
mov eax, dword [edx + 0x18]
add eax, dword [ebp - 0x204]
cmp eax, 0x100
jbe 0x41fc03
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 0
push accept
push dword [edx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp eax, 0xffffffff
jne 0x41fc55
mov ecx, dword [ebp - 0x200]
push 0
push 0x80
push 3
push 0
push 7
push accept
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp eax, 0xffffffff
je 0x41fbed
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e0], ecx
cmp edx, 7
jl 0x41fc94
jg 0x41fc8a
cmp ecx, 0xf8000000
jbe 0x41fc94
mov edi, 3
jmp 0x4213bd
mov eax, ecx
or eax, edx
jne 0x41fca2
lea edi, [eax + 3]
jmp 0x4213bd
mov eax, ecx
add eax, 0x6000000
mov dword [ebp - 0x210], eax
mov eax, edx
adc eax, 0
cmp dword [edi + 0x44], eax
ja 0x41fcfc
jb 0x41fcc6
mov eax, dword [ebp - 0x210]
cmp dword [edi + 0x40], eax
jae 0x41fcfc
mov eax, dword [edi]
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], edx
push 0x3c755387
mov eax, dword [eax + 0x4f0]
push 0xbcd3f497
or dword [eax + 0x20], 0x80
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045bdc0
mov edi, 2
jmp 0x4213bd
push 0
push 0x10
push edx
push ecx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
call fcn.004f3670
mov ecx, eax
mov eax, 0x10
sub eax, ecx
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x228], ecx
cmp dword [ebp - 0x1ec], ebx
jl 0x41fd40
jg 0x41fd39
mov eax, dword [ebp - 0x1e0]
cmp eax, 0x400000
jbe 0x41fd46
mov esi, 0x400000
jmp 0x41fd49
mov eax, dword [ebp - 0x1e0]
lea esi, [ecx + eax]
push esi
call fcn.004d9a7e
add esp, 4
mov ebx, eax
push esi
call fcn.004d9a7e
mov ecx, dword [ebp - 0x1ec]
mov esi, eax
mov eax, dword [ebp - 0x1e0]
add esp, 4
or eax, ecx
mov dword [ebp - 0x1fc], esi
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x170], 0x67452301
mov dword [ebp - 0x16c], 0xefcdab89
mov dword [ebp - 0x168], 0x98badcfe
mov dword [ebp - 0x164], 0x10325476
je 0x41ff21
mov esi, dword [ebp - 0x1e0]
nop word [eax + eax]
test ecx, ecx
jl 0x41fe30
jg 0x41fdde
cmp esi, 0x400000
jbe 0x41fe30
push 0
lea ecx, [ebp - 0x1dc]
push ecx
push 0x400000
push ebx
push dword [ebp - 0x20c]
call eax
cmp dword [ebp - 0x1dc], 0x400000
jne 0x420ed2
mov ecx, dword [edi]
lea eax, [ebp - 0x170]
push eax
push 0x400000
push ebx
mov ecx, dword [ecx + 0x480]
call fcn.004b2200
mov eax, dword [ebp - 0x1ec]
add esi, 0xffc00000
adc eax, 0xffffffff
jmp 0x41fe7c
push 0
lea ecx, [ebp - 0x1dc]
push ecx
push esi
push ebx
push dword [ebp - 0x20c]
call eax
cmp dword [ebp - 0x1dc], esi
jne 0x420ed2
mov ecx, dword [edi]
lea eax, [ebp - 0x170]
push eax
push esi
push ebx
mov ecx, dword [ecx + 0x480]
call fcn.004b2200
xorps xmm0, xmm0
movlpd qword [ebp - 0x1f8], xmm0
mov eax, dword [ebp - 0x1f4]
mov esi, dword [ebp - 0x1f8]
mov ecx, dword [edi + 4]
inc dword [ebp - 0x1e8]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ecx + 0xd0]
test ecx, ecx
je 0x41ff11
cmp ecx, 2
je 0x41ff11
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
sub ecx, esi
sbb edx, eax
call fcn.004f3bf0
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
movss dword [ebp - 0x210], xmm0
call fcn.004f3bf0
movss xmm1, dword [ebp - 0x210]
divss xmm1, xmm0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1ec]
mov edi, dword [ebp - 0x208]
mulss xmm1, dword [0x513ca0]
mulss xmm1, dword [0x513a64]
movss dword [eax + 0x14c], xmm1
mov eax, esi
or eax, ecx
je 0x41ff1b
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41fdd0
mov edi, 1
jmp 0x4213b7
mov esi, dword [ebp - 0x1fc]
mov ecx, dword [edi]
lea eax, [ebp - 0x170]
push eax
mov ecx, dword [ecx + 0x480]
call fcn.004b2580
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x1ec], eax
mov eax, dword [edi + 4]
mov dword [eax + 0x14c], 0x420847ae
mov eax, dword [ebp - 0x1e8]
shl eax, 5
add eax, 0x30
push eax
mov dword [ebp - 0x210], eax
call fcn.004d9a7e
mov dword [ebp - 0x224], eax
add esp, 4
xor edx, edx
mov dword [eax], 5
mov dword [eax + 4], 0
add eax, 8
mov dword [ebp - 0x214], eax
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x228]
mov ecx, eax
add ecx, dword [ebp - 0x1e0]
adc edx, dword [ebp - 0x1ec]
mov dword [edi], ecx
mov ecx, edi
mov edi, dword [ebp - 0x208]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x170]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 0x400000
add ecx, 0x10
mov dword [ebp - 0x214], ecx
mov ecx, dword [edi]
push eax
push 0x10
push dword [edi + 0x24]
mov ecx, dword [ecx + 0x484]
call fcn.004b48f0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x420015
mov dword [eax + 0x1e0], 0
mov dword [eax + 0x1e4], 0
mov dword [eax + 0x1e8], 0
mov dword [eax + 0x1ec], 0
push 0
push 0
push 0
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x1e0]
mov eax, ecx
mov edx, dword [ebp - 0x1ec]
or eax, edx
je 0x420436
nop dword [eax]
test edx, edx
jl 0x4201b5
jg 0x420056
cmp ecx, 0x400000
jbe 0x4201b5
push 0
lea eax, [ebp - 0x1dc]
push eax
push 0x400000
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1dc], 0x400000
jne 0x41fc8a
mov eax, dword [edi]
mov edx, dword [edi + 0x24]
mov ecx, dword [eax + 0x484]
test edx, edx
je 0x4200ed
test ebx, ebx
je 0x4200ed
test esi, esi
je 0x420182
mov eax, dword [edx + 0x200]
cmp eax, 0xa
je 0x4200b1
cmp eax, 0xc
je 0x4200b1
cmp eax, 0xe
jne 0x4200f5
sub eax, 0xa
je 0x4200de
sub eax, 2
je 0x4200cf
sub eax, 2
jne 0x4200f5
push 0x40000
push esi
push ebx
push edx
call fcn.004b6710
jmp 0x4200f5
push 0x40000
push esi
push ebx
push edx
call fcn.004b7580
jmp 0x4200f5
push 0x40000
push esi
push ebx
push edx
call fcn.004b8200
jmp 0x4200f5
test esi, esi
je 0x420182
lea eax, [ebp - 0x118]
mov dword [ebp - 0xf4], 0
push eax
push dword [ebp - 0x1dc]
mov dword [ebp - 0xf8], 0
push esi
mov dword [ebp - 0x118], 0x6a09e667
mov dword [ebp - 0x114], 0xbb67ae85
mov dword [ebp - 0x110], 0x3c6ef372
mov dword [ebp - 0x10c], 0xa54ff53a
mov dword [ebp - 0x108], 0x510e527f
mov dword [ebp - 0x104], 0x9b05688c
mov dword [ebp - 0x100], 0x1f83d9ab
mov dword [ebp - 0xfc], 0x5be0cd19
mov dword [ebp - 0xa8], 0
call fcn.004b2370
lea eax, [ebp - 0x118]
push eax
call fcn.004b2880
mov edx, dword [ebp - 0x214]
movups xmm0, xmmword [ebp - 0x118]
mov eax, dword [ebp - 0x1e0]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0x108]
movups xmmword [edx + 0x10], xmm0
sub eax, dword [ebp - 0x1dc]
sbb dword [ebp - 0x1ec], 0
jmp 0x420379
push 0
lea eax, [ebp - 0x1dc]
push eax
push ecx
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1dc]
cmp ecx, dword [ebp - 0x1e0]
jne 0x41fc8a
xor edx, edx
lea eax, [ebx + ecx]
cmp dword [ebp - 0x228], edx
jbe 0x42020c
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
mov ecx, dword [ebp - 0x1dc]
inc edx
inc ecx
mov dword [ebp - 0x1dc], ecx
cmp edx, dword [ebp - 0x228]
jb 0x4201f0
mov eax, dword [edi]
mov eax, dword [eax + 0x484]
mov dword [ebp - 0x1e4], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4202b1
test ebx, ebx
je 0x4202b1
test esi, esi
je 0x420341
mov eax, dword [eax + 0x200]
cmp eax, 0xa
je 0x42024a
cmp eax, 0xc
je 0x42024a
cmp eax, 0xe
jne 0x4202b9
test cl, 0xf
jne 0x4202b9
mov edx, ecx
shr edx, 4
sub eax, 0xa
je 0x420297
sub eax, 2
je 0x42027d
sub eax, 2
jne 0x4202b9
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1e4]
push edx
push esi
push ebx
push eax
call fcn.004b6710
mov ecx, dword [ebp - 0x1dc]
jmp 0x4202b9
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1e4]
push edx
push esi
push ebx
push eax
call fcn.004b7580
mov ecx, dword [ebp - 0x1dc]
jmp 0x4202b9
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1e4]
push edx
push esi
push ebx
push eax
call fcn.004b8200
mov ecx, dword [ebp - 0x1dc]
jmp 0x4202b9
test esi, esi
je 0x420341
lea eax, [ebp - 0x118]
mov dword [ebp - 0xf4], 0
push eax
push ecx
push esi
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x118], 0x6a09e667
mov dword [ebp - 0x114], 0xbb67ae85
mov dword [ebp - 0x110], 0x3c6ef372
mov dword [ebp - 0x10c], 0xa54ff53a
mov dword [ebp - 0x108], 0x510e527f
mov dword [ebp - 0x104], 0x9b05688c
mov dword [ebp - 0x100], 0x1f83d9ab
mov dword [ebp - 0xfc], 0x5be0cd19
mov dword [ebp - 0xa8], 0
call fcn.004b2370
lea eax, [ebp - 0x118]
push eax
call fcn.004b2880
mov edx, dword [ebp - 0x214]
movups xmm0, xmmword [ebp - 0x118]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebp - 0x108]
movups xmmword [edx + 0x10], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1f8], xmm0
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1f8]
mov ecx, 0x20
mov dword [ebp - 0x1e0], eax
add edx, ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x214], edx
mov ecx, dword [ecx + 0xd0]
test ecx, ecx
je 0x4204db
cmp ecx, 2
je 0x4204db
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
sub ecx, eax
sbb edx, dword [ebp - 0x1ec]
call fcn.004f3bf0
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
movss dword [ebp - 0x1e4], xmm0
call fcn.004f3bf0
movss xmm1, dword [ebp - 0x1e4]
divss xmm1, xmm0
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1ec]
mov edi, dword [ebp - 0x208]
mulss xmm1, dword [0x513ca0]
mulss xmm1, dword [0x513a58]
addss xmm1, dword [0x513c90]
movss dword [eax + 0x14c], xmm1
mov eax, ecx
or eax, edx
je 0x42042a
mov esi, dword [ebp - 0x1fc]
jmp 0x420040
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1ec], esi
mov dword [eax + 0x14c], 0x424c851e
lea eax, [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x210]
add eax, 0xffffffe8
push eax
push dword [ebp - 0x224]
call fcn.004b29c0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004ae8f0
mov eax, dword [ebp - 0x200]
cmp dword [eax + 8], 1
jne 0x4204f1
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xbc]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0042ceb0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x4204e5
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x4204d4
cmp eax, 2
jne 0x4204e5
xor edi, edi
jmp 0x4213b7
mov edi, 1
jmp 0x4213bd
mov esi, dword [ebp - 0x1ec]
mov edi, dword [ebp - 0x208]
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push 1
push 0
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a7df0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
add eax, 0x108
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004ae8f0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x224]
mov ecx, dword [edi]
add eax, 0x18
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x170]
push eax
push 0x10
push dword [edi + 0x24]
mov ecx, dword [ecx + 0x484]
call fcn.004b48f0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1e4], 0
test eax, eax
je 0x42058c
mov dword [eax + 0x1e0], 0
mov dword [eax + 0x1e4], 0
mov dword [eax + 0x1e8], 0
mov dword [eax + 0x1ec], 0
push 0
push 0
push 0
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x1f0]
mov eax, esi
or eax, ecx
je 0x4208b9
nop
test ecx, ecx
jl 0x4206c9
jg 0x4205c6
cmp esi, 0x400000
jbe 0x4206c9
push 0
lea eax, [ebp - 0x1dc]
push eax
push 0x400000
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1dc], 0x400000
mov esi, dword [ebp - 0x1fc]
jne 0x41fc8a
mov eax, dword [edi]
mov edx, dword [edi + 0x24]
mov ecx, dword [eax + 0x484]
test edx, edx
je 0x42065d
test ebx, ebx
je 0x42065d
test esi, esi
je 0x42065d
mov eax, dword [edx + 0x200]
cmp eax, 0xa
je 0x420623
cmp eax, 0xc
je 0x420623
cmp eax, 0xe
jne 0x42065d
sub eax, 0xa
je 0x420650
sub eax, 2
je 0x420641
sub eax, 2
jne 0x42065d
push 0x40000
push esi
push ebx
push edx
call fcn.004b6710
jmp 0x42065d
push 0x40000
push esi
push ebx
push edx
call fcn.004b7580
jmp 0x42065d
push 0x40000
push esi
push ebx
push edx
call fcn.004b8200
push dword [ebp - 0x1dc]
mov ecx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x24]
push esi
push ecx
mov ecx, dword [edi]
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a72a0
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push 2
push dword [ebp - 0x1e0]
mov ecx, dword [ecx + 0x49c]
push eax
call fcn.004a7910
mov ecx, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ecx + 8]
and eax, 7
bts edx, eax
mov eax, dword [ebp - 0x1ec]
sub eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e4], edx
sbb dword [ebp - 0x1f0], 0
jmp 0x420814
push 0
lea eax, [ebp - 0x1dc]
push eax
push esi
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1dc]
cmp ecx, esi
jne 0x420ed2
mov esi, dword [ebp - 0x228]
lea eax, [ebx + ecx]
xor edx, edx
test esi, esi
je 0x420718
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
mov ecx, dword [ebp - 0x1dc]
inc edx
inc ecx
mov dword [ebp - 0x1dc], ecx
cmp edx, esi
jb 0x420700
mov eax, dword [edi]
mov esi, dword [ebp - 0x1fc]
mov eax, dword [eax + 0x484]
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4207a9
test ebx, ebx
je 0x4207a9
test esi, esi
je 0x4207a9
mov eax, dword [eax + 0x200]
cmp eax, 0xa
je 0x420750
cmp eax, 0xc
je 0x420750
cmp eax, 0xe
jne 0x4207a9
test cl, 0xf
jne 0x4207a9
mov edx, ecx
shr edx, 4
sub eax, 0xa
je 0x420791
sub eax, 2
je 0x42077d
sub eax, 2
jne 0x4207a9
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1f0]
push edx
push esi
push ebx
push eax
call fcn.004b6710
jmp 0x4207a3
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1f0]
push edx
push esi
push ebx
push eax
call fcn.004b7580
jmp 0x4207a3
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1f0]
push edx
push esi
push ebx
push eax
call fcn.004b8200
mov ecx, dword [ebp - 0x1dc]
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push esi
push dword [ebp - 0x1e0]
mov ecx, dword [ecx + 0x49c]
push eax
call fcn.004a72a0
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push 2
push dword [ebp - 0x1e0]
mov ecx, dword [ecx + 0x49c]
push eax
call fcn.004a7910
mov ecx, dword [ebp - 0x1e0]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1f8], xmm0
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x1e4]
and eax, 7
bts ecx, eax
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1e4], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x1ec], eax
mov ecx, dword [ecx + 0xd0]
test ecx, ecx
je 0x4204db
cmp ecx, 2
je 0x4204db
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
sub ecx, eax
sbb edx, dword [ebp - 0x1f0]
call fcn.004f3bf0
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
movss dword [ebp - 0x218], xmm0
call fcn.004f3bf0
movss xmm1, dword [ebp - 0x218]
divss xmm1, xmm0
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1f0]
mulss xmm1, dword [0x513ca0]
mulss xmm1, dword [0x513a68]
addss xmm1, dword [0x513c98]
movss dword [eax + 0x14c], xmm1
mov eax, esi
or eax, ecx
je 0x4208b9
add dword [ebp - 0x1e0], 0x20
mov edi, dword [ebp - 0x208]
jmp 0x4205b0
mov ecx, dword [ebp - 0x208]
xor edx, edx
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x21c]
push dword [ebp - 0x210]
mov eax, dword [ecx + 4]
push dword [ebp - 0x224]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [eax + 0x14c], 0x42c80000
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x44]
mov ecx, dword [ecx]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], edx
push eax
mov ecx, dword [ecx + 0x49c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
call fcn.004a72a0
mov eax, dword [ebp - 0x224]
mov edx, 0
mov ecx, dword [ebp - 0x228]
add ecx, esi
lea esi, [eax + 4]
mov dword [esi], ecx
adc edx, edi
mov dword [eax], 0
mov dword [esi + 4], edx
mov eax, ecx
add esi, 8
or eax, edx
je 0x4209b1
nop word [eax + eax]
test edx, edx
jl 0x42098f
jg 0x42097e
cmp ecx, 0x400000
jbe 0x42098f
add ecx, 0xffc00000
mov dword [esi], 0x400000
adc edx, 0xffffffff
jmp 0x4209a8
xorps xmm0, xmm0
mov dword [esi], ecx
movlpd qword [ebp - 0x1f8], xmm0
mov edx, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1f8]
mov eax, ecx
add esi, 4
or eax, edx
jne 0x420970
mov eax, dword [ebp - 0x1e8]
mov edi, dword [ebp - 0x208]
mov dword [ebp - 0x28], 1
lea eax, [eax*4 + 0xc]
mov ecx, dword [edi]
push eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x44]
mov ecx, dword [ecx + 0x49c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a72a0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x200]
movups xmm0, xmmword [ebp - 0x24]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
xor eax, eax
cmp dword [ecx + 8], 1
mov ecx, dword [edi]
sete al
mov dword [ebp - 0x90], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x58], 2
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ecx + 0x4c8]
lea eax, [eax*4 + 0x60]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1e4]
not eax
mov dword [ebp - 0x68], 0
movzx eax, al
shl eax, 0x10
or eax, 0x600
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x54]
push eax
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x5c], 0
call fcn.0047acd0
cmp dword [ebp - 0x90], 3
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x4c], 0
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x1f4], eax
jge 0x420ac0
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x1f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429810
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov esi, dword [eax + 0x4a8]
mov dword [ebp - 0x1e4], esi
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1e8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x20
push 0x77fc87de
call fcn.004088a0
test eax, eax
jne 0x420b90
mov esi, dword [ebp - 0x1e8]
test esi, esi
jne 0x420b43
mov ecx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f4]
lea eax, [ebp - 0x8c]
push eax
push 0x20
push 0x77fc87de
call fcn.00408d50
test eax, eax
jne 0x420b90
mov esi, dword [ebp - 0x1e8]
cmp dword [esi + 0x6c], 2
je 0x420b90
mov ecx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1f4]
push eax
push 0x77fc87de
mov dword [esi + 0x6c], 2
call fcn.00408e50
test eax, eax
jne 0x420b90
mov ecx, dword [ebp - 0x1e4]
push esi
mov esi, dword [ebp - 0x1f4]
push esi
call fcn.00408a40
push dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x1e4]
push esi
call fcn.004089f0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x200]
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 0x204]
lea eax, [eax*2 + 0x48]
mov dword [ebp - 0x1f4], eax
add eax, 0x18
mov dword [ebp - 0x1f0], eax
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 0x9c]
mov dword [edx], 0
lea ecx, [edx + 8]
cmp dword [esi + 0x3c], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1e4], ecx
jne 0x420c0e
mov dword [edx + 4], eax
mov eax, dword [esi + 0x18]
lea esi, [eax + eax]
mov eax, dword [ebp - 0x200]
push esi
push dword [eax + 0x14]
push ecx
call fcn.004d6950
mov ecx, dword [ebp - 0x1e4]
add esp, 0xc
add ecx, esi
mov dword [ecx], 0
jmp 0x420c6f
add eax, dword [ebp - 0x204]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x1e4], ecx
lea esi, [eax + eax]
mov eax, dword [ebp - 0x200]
push esi
push dword [eax + 0x14]
push ecx
call fcn.004d6950
mov ecx, dword [ebp - 0x204]
add esp, 0xc
mov eax, dword [ebp - 0x1e4]
add eax, esi
mov dword [ebp - 0x1e4], eax
lea esi, [ecx + ecx]
push esi
push dword [edi + 0x20]
push eax
call fcn.004d6950
mov ecx, dword [ebp - 0x1e4]
add esp, 0xc
add ecx, esi
add dword [ebp - 0x1f0], 0x50
mov dword [ecx], 1
mov eax, dword [ebp - 0x210]
lea esi, [ecx + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [ecx + 8], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x28c]
and eax, 0xffff0000
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x170]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x16c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x168]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x164]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x200]
cmp dword [eax + 0x3c], 0
je 0x420f8b
mov eax, dword [edi]
mov ecx, dword [eax + 0x480]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x218], ecx
mov eax, dword [eax + 0x9c]
test eax, eax
je 0x420d88
lea edx, [ebp - 0x1d8]
mov dword [ebp - 0x1c0], 0
push edx
push dword [ebp - 0x1f4]
mov dword [ebp - 0x1c4], 0
push eax
mov dword [ebp - 0x1d8], 0x67452301
mov dword [ebp - 0x1d4], 0xefcdab89
mov dword [ebp - 0x1d0], 0x98badcfe
mov dword [ebp - 0x1cc], 0x10325476
mov dword [ebp - 0x1c8], 0xc3d2e1f0
mov dword [ebp - 0x178], 0
call fcn.004b22d0
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x1d8]
push eax
call fcn.004b2720
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 0x40]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x20], xmm0
add esi, 0x28
mov dword [ebp - 0x204], esi
xor ecx, ecx
cmp dword [ecx*8 + 0x50c190], 0x2c6
je 0x420edc
inc ecx
cmp ecx, 0x43
jb 0x420db4
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x200]
push 0x14
push dword [eax + 0x44]
push 0x2c6
push esi
call fcn.004bbdb0
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x1f4], 0x28
push eax
push dword [ebp - 0x204]
lea eax, [ebp - 0x1d8]
push ecx
push eax
push esi
call fcn.004bc800
test esi, esi
je 0x420e3e
mov ecx, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
test ecx, ecx
je 0x420e29
call fcn.004c2a10
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x420e35
call fcn.004bfe20
push esi
call fcn.004d9a63
add esp, 4
xor ecx, ecx
cmp dword [ecx*8 + 0x50c190], 0x2c6
je 0x420f33
inc ecx
cmp ecx, 0x43
jb 0x420e40
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x200]
push 0x28
mov dword [ebp - 0x1e8], eax
push dword [ecx + 0x40]
push 0x2c6
push eax
call fcn.004bba30
push 0x28
push dword [ebp - 0x204]
lea eax, [ebp - 0x1d8]
push ecx
push eax
push dword [ebp - 0x1e8]
call fcn.004bbeb0
push dword [ebp - 0x1e8]
mov esi, eax
call fcn.004bd080
test esi, esi
je 0x420f82
push ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push 1
push 0
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a7df0
push ecx
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ecx + 0xbc]
call fcn.0042d060
mov edi, 3
jmp 0x4213b7
mov ecx, dword [ecx*8 + 0x50c194]
call fcn.004c3150
mov dword [ebp - 0x218], eax
test eax, eax
je 0x420dcb
mov dword [eax + 0x30], 0x2c6
mov esi, dword [eax + 0x4c]
push 0x10
shl esi, 5
call fcn.004d9a7e
mov dword [ebp - 0x1f4], eax
add esp, 4
mov dword [eax + 4], esi
mov esi, eax
mov dword [eax], 0x2c6
mov eax, dword [ebp - 0x218]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x420dd1
mov ecx, dword [ecx*8 + 0x50c194]
call fcn.004c3150
mov dword [ebp - 0x1f4], eax
test eax, eax
je 0x420e57
mov dword [eax + 0x30], 0x2c6
mov esi, dword [eax + 0x4c]
push 0x10
shl esi, 5
call fcn.004d9a7e
mov ecx, dword [ebp - 0x1f4]
add esp, 4
mov dword [eax], 0x2c6
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
jmp 0x420e5d
mov esi, dword [ebp - 0x204]
add esi, 0x28
mov eax, dword [edi]
push esi
mov eax, dword [eax + 0x4c8]
mov ecx, eax
mov dword [ebp - 0x1f4], eax
call fcn.0047ac20
test eax, eax
je 0x420fb1
mov ecx, dword [ebp - 0x1f4]
push esi
call fcn.0047acd0
mov eax, dword [esi]
mov dword [esi + 4], eax
mov dword [esi + 8], 0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x10]
call fcn.00409ee0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x513d40]
mulsd xmm0, qword [0x513a38]
mulsd xmm0, qword [0x513ba8]
call fcn.004f3af0
mov dword [esi + 0xc], eax
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x9c]
test ecx, ecx
je 0x4210b1
lea eax, [ebp - 0x118]
mov dword [ebp - 0xf4], 0
push eax
mov eax, dword [ebp - 0x1f0]
add eax, 0xffffffe8
mov dword [ebp - 0xf8], 0
push eax
push ecx
mov dword [ebp - 0x118], 0x6a09e667
mov dword [ebp - 0x114], 0xbb67ae85
mov dword [ebp - 0x110], 0x3c6ef372
mov dword [ebp - 0x10c], 0xa54ff53a
mov dword [ebp - 0x108], 0x510e527f
mov dword [ebp - 0x104], 0x9b05688c
mov dword [ebp - 0x100], 0x1f83d9ab
mov dword [ebp - 0xfc], 0x5be0cd19
mov dword [ebp - 0xa8], 0
call fcn.004b2370
lea eax, [ebp - 0x118]
push eax
call fcn.004b2880
movups xmm0, xmmword [ebp - 0x118]
mov eax, dword [ebp - 0x200]
movups xmmword [ebp - 0x24], xmm0
cmp dword [eax + 8], 1
movups xmm0, xmmword [ebp - 0x108]
movups xmmword [ebp - 0x14], xmm0
jne 0x4210e6
mov dword [esi + 8], 0x3f800000
mov eax, dword [edi]
mov dword [eax + 0x400], 0
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x24]
mov esi, dword [ebp - 0x1f0]
push eax
push esi
push dword [ecx + 0x9c]
call fcn.004ace30
test eax, eax
je 0x42110d
mov edi, 3
jmp 0x4213b7
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
add eax, 0x108
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004ae8f0
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x44]
push eax
call fcn.004ae930
mov eax, dword [edi]
lea ecx, [ebp - 0x1f4]
push ecx
push 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1f4], 0
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 0x49c]
call fcn.004a73f0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x42118b
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x44]
push esi
push dword [ecx + 0x9c]
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a72a0
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004ae8f0
mov ecx, dword [ebp - 0x200]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x68], 0
cmp dword [ecx + 8], 1
mov ecx, dword [edi]
sete al
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x100
mov dword [ebp - 0x5c], 0
mov ecx, dword [ecx + 0x4c8]
lea eax, [eax*4 + 0x68]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x54]
push eax
call fcn.0047acd0
cmp dword [ebp - 0x90], 3
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x4c], 0
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x1f4], eax
jge 0x42123a
lea esi, [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x1f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429810
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov esi, dword [eax + 0x4a8]
mov dword [ebp - 0x204], esi
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1e8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x20
push 0x77fc87de
call fcn.004088a0
test eax, eax
jne 0x42130a
mov esi, dword [ebp - 0x1e8]
test esi, esi
jne 0x4212bd
mov ecx, dword [ebp - 0x204]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f4]
lea eax, [ebp - 0x8c]
push eax
push 0x20
push 0x77fc87de
call fcn.00408d50
test eax, eax
jne 0x42130a
mov esi, dword [ebp - 0x1e8]
cmp dword [esi + 0x6c], 1
je 0x42130a
mov ecx, dword [ebp - 0x204]
lea eax, [ebp - 0x1f4]
push eax
push 0x77fc87de
mov dword [esi + 0x6c], 1
call fcn.00408e50
test eax, eax
jne 0x42130a
mov ecx, dword [ebp - 0x204]
push esi
mov esi, dword [ebp - 0x1f4]
push esi
call fcn.00408a40
push dword [ebp - 0x1e8]
mov ecx, dword [ebp - 0x204]
push esi
call fcn.004089f0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1f0]
add eax, 0x18
push eax
mov dword [ebp - 0x1f4], eax
call fcn.004d9a7e
mov esi, eax
add esp, 4
test esi, esi
je 0x421345
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi], 0xe26af5e
mov ecx, dword [edi + 0xc]
push dword [ebp - 0x1f0]
mov eax, dword [ecx + 0x9c]
mov eax, dword [eax]
mov dword [esi + 4], eax
lea eax, [esi + 0x18]
push dword [ecx + 0x9c]
push eax
call fcn.004d6950
mov ecx, dword [edi]
lea eax, [ebp - 0x8c]
add esp, 0xc
mov ecx, dword [ecx + 0x470]
push 0
push dword [ebp - 0x1f4]
push esi
push eax
call fcn.0041aca0
push esi
call fcn.004d9a63
mov eax, dword [ebp - 0x200]
add esp, 4
mov ecx, dword [edi]
push dword [eax + 0x10]
mov ecx, dword [ecx + 0x478]
push 0x2eb87c98
push 0x2e90b136
call fcn.0045bf20
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x20c]
cmp eax, 0xffffffff
je 0x4213cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4213dc
push ebx
call fcn.004d9a63
add esp, 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4213ef
push eax
call fcn.004d9a63
add esp, 4
test esi, esi
je 0x4213fc
push esi
call fcn.004d9a63
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret