Function at 0x403459
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0x94
mov eax, 0x62b1cf
call fcn.004e5a7f
mov esi, ecx
mov dword [ebp - 0x9c], esi
lea eax, [esi + 0x58]
push str..dltmp
mov edx, eax
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x38]
call fcn.00405538
xor ebx, ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], 0x10
mov dword [esp], 0x6c17d8
cmovae eax, dword [ebp - 0x38]
push eax
push esi
call fcn.00500adc
add esp, 0xc
test eax, eax
jne 0x4037f8
cmp dword [esi], ebx
je 0x4037f8
mov ecx, esi
call fcn.0040399f
test al, al
je 0x4037f8
push 2
push ebx
push ebx
push dword [esi]
call fcn.00500ddf
push dword [esi]
call fcn.00504874
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
push dword [esi]
mov edi, eax
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], ebx
call fcn.00500ddf
add esp, 0x24
test eax, eax
jne 0x4037f8
push dword [esi]
lea eax, [ebp - 0x84]
push 1
push 4
push eax
call fcn.00504a7b
add esp, 0x10
test eax, eax
je 0x4037f8
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [esi + 0x8c]
jne 0x4037f8
mov eax, dword [ebp - 0x88]
cmp ebx, eax
jg 0x4037f8
jl 0x403547
cmp ecx, edi
jae 0x4037f8
sub edi, ecx
push ebx
sbb eax, ebx
sub edi, 4
push 0xc
sbb eax, ebx
push eax
push edi
call fcn.004e5330
push ebx
push ebx
push dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
push dword [esi]
mov dword [esi + 0x90], ebx
call fcn.00500ddf
add esp, 0x10
test eax, eax
jne 0x4037f8
mov edi, ebx
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x8c], ebx
jle 0x403750
mov byte [ebp - 0x90], 1
cmp byte [esi + 0x8a], bl
je 0x403637
push dword [esi]
lea eax, [ebp - 0x9c]
push 1
push 4
push eax
call fcn.00504a7b
push dword [esi]
lea eax, [ebp - 0x94]
push 1
push 4
push eax
call fcn.00504a7b
push dword [esi]
lea eax, [ebp - 0xa0]
push 1
push 4
push eax
call fcn.00504a7b
mov edx, dword [ebp - 0x9c]
add esp, 0x30
cmp edx, 0xffffffff
je 0x403621
mov eax, dword [ebp - 0x94]
cmp eax, 0xffffffff
je 0x403621
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0xffffffff
je 0x403621
cmp edx, dword [ebp - 0x84]
jae 0x403621
cmp eax, dword [ebp - 0x84]
ja 0x403621
cmp ecx, dword [ebp - 0x84]
ja 0x403621
cmp ecx, eax
ja 0x403621
test eax, eax
jne 0x403627
mov byte [ebp - 0x90], bl
test edi, edi
jne 0x403655
test edx, edx
je 0x403677
mov byte [ebp - 0x90], bl
jmp 0x403677
mov eax, dword [ebp - 0x84]
mov edx, ebx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa0], ebx
test edi, edi
je 0x403677
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edi*4 - 4]
xor edi, edi
mov ecx, dword [eax + 4]
add ecx, dword [eax]
mov eax, dword [ebp - 0x90]
cmp ecx, edx
movzx eax, al
cmovne eax, edi
mov dword [ebp - 0x90], eax
push 0x1c
call fcn.004e4913
pop ecx
mov edx, eax
xor eax, eax
mov edi, edx
mov dword [ebp - 0x98], edx
push 7
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x88]
cmp byte [ebp - 0x90], al
je 0x4036c6
mov eax, dword [ebp - 0x9c]
mov dword [edx], eax
mov eax, dword [ebp - 0x94]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xa0]
add dword [esi + 0x90], eax
jmp 0x40371d
mov eax, dword [ebp - 0x84]
xor edx, edx
div dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x98]
xor edx, edx
imul eax, edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx - 1]
cmp edi, eax
jne 0x40370c
mov ecx, dword [ebp - 0x84]
mov eax, ecx
div dword [ebp - 0x8c]
mov edx, dword [ebp - 0x98]
imul eax, edi
sub ecx, eax
mov dword [edx + 4], ecx
jmp 0x40371d
mov eax, dword [ebp - 0x84]
div ecx
mov edx, dword [ebp - 0x98]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x3c]
je 0x40372d
mov dword [eax], edx
add dword [esi + 0x38], 4
jmp 0x40373d
lea ecx, [ebp - 0x98]
push ecx
push eax
lea ecx, [esi + 0x34]
call fcn.004055ff
inc edi
mov dword [ebp - 0x88], edi
cmp edi, dword [ebp - 0x8c]
jl 0x403594
push 1
mov ecx, esi
call fcn.00403fc0
mov edi, ebx
cmp dword [ebp - 0x8c], ebx
jle 0x4037db
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + edi*4]
mov dword [ebp - 0x88], ecx
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 4]
jae 0x4037d2
push 0x10
call fcn.004e4913
pop ecx
mov dword [ebp - 0x98], eax
mov ecx, esi
push eax
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 4], edi
mov dword [eax], esi
call fcn.00402f89
test al, al
je 0x4037e2
mov eax, dword [ebp - 0x88]
add eax, 0x14
push eax
push ebx
push dword [ebp - 0x98]
push 0x403136
push ebx
push ebx
call dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x4037e2
inc edi
cmp edi, dword [ebp - 0x8c]
jl 0x40376e
mov bl, 1
jmp 0x403942
mov ecx, esi
call fcn.00402eb3
push dword [esi]
call fcn.0050060f
pop ecx
mov dword [esi], ebx
jmp 0x403942
lea edi, [esi + 4]
push edi
call fcn.00475f38
push eax
call fcn.00405fa7
pop ecx
pop ecx
cmp dword [esi], ebx
je 0x403817
push dword [esi]
call fcn.0050060f
pop ecx
mov dword [esi], ebx
push edi
call fcn.00475f5d
push eax
call fcn.00405fa7
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push ebx
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.005008ac
add esp, 0x10
cmp eax, 0xffffffff
je 0x403930
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403930
mov ecx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], bl
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x94]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ecx
push str.bk_d
inc ecx
stosd dword es:[edi], eax
push 0x10
mov dword [ebp - 0x94], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00405588
add esp, 0x10
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], 0xf
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x68], bl
push eax
call fcn.004060b1
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.004054d9
pop ecx
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x4038dd
mov byte [ebp - 0x88], bl
push dword [ebp - 0x88]
push eax
call fcn.004054af
lea ecx, [ebp - 0x80]
call fcn.004060fd
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.004060fd
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push ebx
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.005008ac
pop ecx
pop ecx
mov ecx, dword [ebp - 0x94]
cmp eax, 0xffffffff
jne 0x403874
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.004052ce
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004060fd
mov esi, dword [ebp - 0x9c]
push ebx
lea eax, [esi + 0x58]
mov ecx, esi
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0040293a
mov bl, al
lea ecx, [ebp - 0x38]
call fcn.004060fd
mov al, bl
call fcn.004e5a3a
ret