Function at 0x415170
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de8c1
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
mov eax, dword [0x518250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e4b0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 0x11], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4151ef
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x4151ef
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4151ef
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x11], 0
je 0x41527a
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e4b0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 1
call fcn.0040ca20
mov esi, eax
push str.OnMsgUploadResult__nErrorCode
push esi
mov byte [ebp - 4], 2
call fcn.0040cfe0
add esp, 8
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00412bc0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0xbc]
call fcn.00404360
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x415277
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x415277
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x415277
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
cmp dword [ebp + 0xc], 0
jne 0x415448
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e4b0
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 - 0x18]
mov byte [ebp + 0xf], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4152d3
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x4152d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4152d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x41534e
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e4b0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 4
call fcn.0040ca20
mov esi, eax
push str.dump_upload_succssful
push esi
mov byte [ebp - 4], 5
call fcn.0040cfe0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0xbc]
call fcn.00404360
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41534b
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41534b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41534b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x60]
cmp dword [eax - 0xc], 0
je 0x41540e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e4b0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 6
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x18]
mov byte [ebp + 0xf], al
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4153b1
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x4153b1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x4153ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp + 0xf]
test al, al
je 0x41540e
lea eax, [ebp - 0x24]
push eax
call fcn.0041e4b0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 7
call fcn.0040ca20
mov esi, eax
push str.delete_local_dump
push esi
mov byte [ebp - 4], 8
call fcn.0040cfe0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 8]
lea ecx, [ebp - 0x154]
call fcn.00404360
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403e10
mov edi, dword [ebp - 0x10]
call fcn.00404e50
mov ecx, eax
test ecx, ecx
je 0x415470
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
push esi
push dword [edi + 0x64]
push 0x4ec378
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415448
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0x1419
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404b40
int3