Function at 0x403db0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44afd8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
mov dword [esp + 0x1c], ebp
jbe 0x403dfa
call fcn.00432c1e
mov edi, esi
mov dword [esp + 0x24], edi
xor ebx, ebx
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x403e0f
call fcn.00432c1e
cmp edi, esi
je 0x4041b7
cmp edi, dword [ebp + 8]
jb 0x403e21
call fcn.00432c1e
mov eax, edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403e36
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.004024f0
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x54]
cmp ecx, 0x10
mov edx, dword [esp + 0x40]
jb 0x404096
cmp edx, ebx
mov esi, edx
mov dword [esp + 0x18], esi
je 0x403e92
cmp ecx, 0x10
mov eax, edx
jae 0x403e79
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x403e92
cmp ecx, 0x10
mov eax, edx
jae 0x403e88
lea eax, [esp + 0x40]
mov ebp, dword [esp + 0x50]
add eax, ebp
cmp esi, eax
jbe 0x403ea3
call fcn.00432c1e
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
mov eax, edx
jae 0x403eae
lea eax, [esp + 0x40]
lea edi, [eax + ebp]
cmp edi, ebx
je 0x403ed5
cmp ecx, 0x10
mov eax, edx
jae 0x403ec0
lea eax, [esp + 0x40]
cmp eax, edi
ja 0x403ed5
cmp ecx, 0x10
mov eax, edx
jae 0x403ecf
lea eax, [esp + 0x40]
add eax, ebp
cmp edi, eax
jbe 0x403ee6
call fcn.00432c1e
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
jb 0x4040a5
cmp edx, ebx
mov esi, edx
je 0x403f15
cmp ecx, 0x10
mov eax, edx
jae 0x403f00
lea eax, [esp + 0x40]
cmp eax, esi
ja 0x403f15
cmp ecx, 0x10
mov eax, edx
jae 0x403f0f
lea eax, [esp + 0x40]
add eax, ebp
cmp esi, eax
jbe 0x403f1a
call fcn.00432c1e
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x30], bl
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x44]
push edi
push ecx
mov eax, esi
call fcn.00412f70
add esp, 0x18
push 7
push str.log.dat
lea edx, [esp + 0x44]
push edx
call fcn.00402360
cmp eax, 0xffffffff
jne 0x404167
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax + 8]
jb 0x403f6e
call fcn.00432c1e
add esi, 0x104
sub esp, 0x1c
mov ecx, esp
mov ebp, 0xf
mov eax, esi
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x403f90
sub eax, edi
push eax
push esi
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0xbc], 1
mov ecx, esp
mov dword [esp + 0x64], esp
push 0xc
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4527c8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0xbc], bl
call fcn.004041e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp edx, dword [ecx + 8]
jb 0x403fe6
call fcn.00432c1e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404167
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x462410]
mov edx, dword [eax + 0xc]
mov ecx, 0x462410
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x84], 2
cmp eax, dword [ecx + 8]
jb 0x40402d
call fcn.00432c1e
push edi
push esi
push str.DeleteFile__s_GetLastError___return__d
lea edi, [esp + 0x24]
call fcn.00412b00
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x404059
mov edx, dword [esi - 0xc]
push edx
mov ecx, edi
call fcn.00401610
mov esi, dword [esp + 0x18]
mov eax, esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404070
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x60]
call fcn.004024f0
cmp esi, ebx
mov byte [esp + 0x84], 3
jne 0x4040ae
xor eax, eax
jmp 0x4040c4
lea eax, [esp + 0x40]
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x403e6e
lea esi, [esp + 0x40]
jmp 0x403ef5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4040b3
sub eax, edx
js 0x4041ad
cmp eax, dword [esi - 8]
jg 0x4041ad
sub esp, 0x1c
mov ecx, esp
mov dword [esi - 0xc], eax
mov dword [esp + 0x48], esp
mov byte [eax + esi], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
mov byte [esp + 0xbc], 4
push ebp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.DeleteFile_fail
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0xbc], 3
call fcn.004041e0
cmp dword [esp + 0x70], 0x10
jb 0x404138
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00416c01
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x84], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x84], 0xffffffff
cmp dword [esp + 0x54], 0x10
jb 0x404186
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00416c01
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp eax, dword [edx + 8]
jb 0x404198
call fcn.00432c1e
add dword [esp + 0x24], 0x208
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
jmp 0x403e02
push 0x80070057
call fcn.00401170
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004322f2
add esp, 0x74
ret 4