Function at 0x411c50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040c780
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
call fcn.004110a0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
call fcn.0040fde0
cmp eax, 0xffffffff
jne 0x411cb7
mov ecx, dword [ebp - 0x1c]
call fcn.0040fec0
push 1
push 0xa
mov dword [ebp - 0x44], vtable.SFile.0
call fcn.00563978
add eax, 8
mov dword [ebp - 0x40], 0
add esp, 8
mov dword [ebp - 0x3c], eax
push 0x1001
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004101e0
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx + 0x70]
mov eax, edx
or eax, dword [ecx + 0x74]
je 0x411fb1
mov eax, dword [ecx + 0x78]
cmp eax, 1
jne 0x411d4a
lea eax, [edx + 0x1000]
push 1
push eax
call fcn.00563978
add esp, 8
mov edi, eax
mov ecx, ebx
push edi
push 0
push 1
call fcn.004118d0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x411d3c
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0055de73
add esp, 4
jmp 0x411fb1
mov ecx, dword [ebx]
push 0x40
push ecx
lea ecx, [ebx + 4]
test eax, eax
jne 0x411e39
call fcn.004101e0
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 4]
push 0
push dword [eax + 0x9c]
push dword [eax + 0x98]
call fcn.004103b0
push 1
push 0x1001000
call fcn.00563978
mov ecx, dword [ebx + 0x20]
add esp, 8
mov edx, eax
mov dword [ebp - 0x10], edx
mov edi, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x74]
mov ecx, edi
or ecx, ebx
je 0x411e2b
mov esi, dword [ebp - 0x20]
test ebx, ebx
ja 0x411ddd
jb 0x411db0
cmp edi, 0x1000000
ja 0x411ddd
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, edi
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x411dd5
movlpd qword [ebp - 0x38], xmm0
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jmp 0x411e1e
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jmp 0x411df5
add edi, 0xff000000
mov dword [ebp - 0x18], 0
mov eax, 0x1000000
mov dword [ebp - 0x14], eax
adc ebx, 0xffffffff
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x10]
mov eax, edi
or eax, ebx
jne 0x411da2
mov esi, dword [ebp - 0x2c]
push edx
call fcn.0055de73
mov ebx, dword [ebp - 0x20]
jmp 0x411f98
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
call fcn.004101e0
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 4]
push 0
push dword [eax + 0x9c]
push dword [eax + 0x98]
call fcn.004103b0
push 1
push 0x1001000
call fcn.00563978
mov ecx, dword [ebx + 0x20]
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ecx + 0x74], 0
jb 0x411f92
ja 0x411e8a
cmp dword [ecx + 0x70], 0
jbe 0x411f92
mov eax, dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
nop
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [ebp - 0x10]
add eax, 0x100
push 1
push eax
call fcn.00563978
mov ecx, eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x411eee
push 0
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push dword [ebx + 8]
call edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x20]
mov edi, 0x1000000
mov eax, dword [eax + 0x7c]
xor dword [ecx], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
push eax
call fcn.0041bb90
add esp, 4
test al, al
je 0x411f3e
cmp dword [ebp - 0x20], edi
ja 0x411f3e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], vtable.snappy::ByteArraySource.0
mov dword [ebp - 0x48], eax
call fcn.0041be70
test al, al
mov dword [ebp - 0x50], vtable.snappy::Source.0
cmovne edi, dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.0055de73
add esp, 4
test edi, edi
je 0x411f5e
push 0
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x20]
add ecx, edi
mov edi, dword [ebp - 0x28]
adc edi, 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edi
cmp edi, dword [eax + 0x74]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jb 0x411ea0
ja 0x411f8c
cmp ecx, dword [eax + 0x70]
jb 0x411ea0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0055de73
mov eax, dword [ebx + 8]
add esp, 4
test eax, eax
je 0x411fb1
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov dword [ebx + 8], 0
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x411fc4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x40], edi
mov ecx, dword [ebx + 0x20]
mov ebx, dword [ecx + 0xa0]
mov eax, ebx
mov edx, dword [ecx + 0xa4]
or eax, edx
je 0x411ff4
sub esp, 8
push dword [ecx + 0xac]
push dword [ecx + 0xa8]
mov ecx, esi
push edx
push ebx
call fcn.0040f9b0
add esp, 0x18
test edi, edi
je 0x412000
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x412013
add eax, 0xfffffff8
push eax
call fcn.0055de73
add esp, 4
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412030
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412047
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
pop edi
pop esi
pop ebx
jg 0x412062
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc