Function at 0x41b610
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x54a734
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
mov edi, ecx
mov ebx, edx
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x5b06b0
mov dword [esp + 0x20], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xd4], esi
cmp dword [ebx + 4], esi
je 0x41b949
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xd4], 1
mov eax, dword [0x5b06b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5b06b0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd8], 2
mov esi, dword [edi]
push ecx
call fcn.0041b440
test eax, eax
jne 0x41b701
mov byte [esp + 0xd4], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b6ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd4], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
jmp 0x41b930
lea ecx, [esp + 0x14]
call fcn.0041d5f0
test eax, eax
jne 0x41b72c
mov byte [esp + 0xd4], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41b6e1
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00412aa0
push 2
push 0x58c7f4
lea edx, [esp + 0x1c]
push edx
call fcn.00412aa0
mov eax, dword [esp + 0xe4]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], vtable.CDownLoadToFile.0
mov dword [esp + 0x30], eax
call fcn.00413730
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xd8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_char__struct_std::char_traits_char__::constructor_void_]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push 0
push eax
mov byte [esp + 0xe0], 4
call fcn.0041d6a0
add esp, 0xc
test eax, eax
je 0x41b7bc
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xd8], 2
call fcn.0046f4d0
jmp 0x41b6c5
mov esi, dword [ebp]
lea eax, [ebx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x41b810
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41b7fd
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41b7fd
call fcn.00412ca0
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41b7f5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x41b80c
mov eax, dword [esp + 0x14]
mov ebx, dword [ebx - 0xc]
push eax
mov eax, ebp
call fcn.00412c00
mov ebx, dword [esp + 0x14]
push 0x58c7f4
push ebp
call fcn.0041b9b0
mov eax, dword [ebp]
push eax
mov ecx, ebx
call fcn.0041b270
add esp, 4
test eax, eax
jne 0x41b844
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xd8], 2
call fcn.0046f4d0
jmp 0x41b6c5
xor edi, edi
lea ebx, [esp + 0x24]
call fcn.00438230
mov ebp, dword [esp + 0xe0]
mov byte [esp + 0xd4], 5
mov ecx, dword [eax]
mov esi, dword [ebp]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x41b8ac
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41b8a1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41b8a1
call fcn.00412ca0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41b899
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x41b8ac
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.00412c00
mov byte [esp + 0xd4], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b8d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
push esi
push ebp
call fcn.00412aa0
lea ecx, [esp + 0x28]
mov ebx, 1
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xd8], 2
call fcn.0046f4d0
mov byte [esp + 0xd4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd4], 0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b949
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x41b965
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b965
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0xd4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b98c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 0xc