Function at 0x416560
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1d1e
mov eax, dword fs:[0]
push eax
sub esp, 0x150
push ebx
push esi
push edi
mov eax, dword [0x51d240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
lea ebx, [ecx + 0x5c]
push SysReAllocStringLen
push dword [ebx]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4166c7
lea eax, [ebp - 0x24]
push eax
call fcn.004206f0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x20]
mov bl, al
mov dword [ebp - 4], esi
or esi, esi
test edi, edi
je 0x4165ff
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x4165ff
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4165ff
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test bl, bl
je 0x4167dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call fcn.004206f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 1
call fcn.0040cb10
mov esi, eax
push str.Get_
push esi
mov byte [ebp - 4], 2
call fcn.0040d0d0
mov ecx, dword [ebp - 0x18]
mov edx, 0x4ef7c0
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.004027d0
push str._size_failed__error_code_
push esi
call fcn.0040d0d0
add esp, 0x18
mov ecx, esi
push ebx
call fcn.0040ce30
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0xc4]
call fcn.004044b0
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4167dd
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4167dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4167dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
ja 0x4166ec
cmp dword [ebp - 0x2c], 0x1e00000
jbe 0x4167dd
lea eax, [ebp - 0x24]
push eax
call fcn.004206f0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x416740
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41673d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x41673a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov ebx, dword [ebp - 0x18]
test al, al
je 0x41679a
lea eax, [ebp - 0x1c]
push eax
call fcn.004206f0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x15c]
mov dword [ebp - 4], 4
call fcn.0040cb10
mov esi, eax
push str.Zip_file_too_big__only_upload_dump_file
push esi
mov byte [ebp - 4], 5
call fcn.0040d0d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x15c]
call fcn.004044b0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403f60
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [ebp - 0x14]
call fcn.004215e0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 6
call fcn.004218a0
test eax, eax
je 0x4167d5
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004216f0
test eax, eax
je 0x4167d5
lea ecx, [ebp - 0x14]
call fcn.004217a0
lea ecx, [ebp - 0x14]
call fcn.004216a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4