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

Disassembly:
push 0x160
mov eax, 0x446694
call fcn.00431e97
mov eax, dword [ebp + 8]
and dword [ebp - 0x14c], 0
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0x20]
mov edi, ecx
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x124], eax
lea eax, [ebp + 0x10]
lea ecx, [edi + 0x3c]
push eax
mov dword [ebp - 4], 2
call fcn.0040222e
lea eax, [ebp + 0x10]
lea ebx, [edi + 0x34]
push eax
mov ecx, ebx
call fcn.0040222e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x120]
mov esi, 0x45a964
push esi
mov dword [edi + 0x40], eax
call fcn.004021e1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x14c], 1
call fcn.00426a44
pop ecx
lea eax, [ebp - 0x150]
push eax
mov byte [ebp - 4], 3
call fcn.0041d7c3
pop ecx
mov ecx, dword [ebp - 0x124]
mov byte [ebp - 4], 4
call fcn.00402078
push 8
call fcn.0041e0bb
pop ecx
test al, al
jne 0x412d42
push esi
lea ecx, [ebp - 0x15c]
call fcn.004021e1
mov edi, 0x44946e
push edi
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 5
call fcn.00401f1d
push edi
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 6
call fcn.00401f1d
push 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
xor edi, edi
push edi
push ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x138], esp
mov ecx, esp
push ebx
call fcn.00402206
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x134]
push eax
push 0x459a14
lea eax, [ebp - 0xf8]
push eax
call fcn.00423c8f
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.0040113c
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.0040113c
lea ecx, [ebp - 0xf8]
call fcn.0042401c
push 0x44a7d4
push 8
push 0x18f6
mov byte [ebp - 0xf9], al
mov byte [ebp - 4], 0xb
xor bl, bl
call fcn.004262bf
add esp, 0xc
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401f1d
push esi
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xc
call fcn.004021e1
mov dword [ebp - 0x10c], edi
push 3
push 1
push SysReAllocString
mov byte [ebp - 4], 0xe
push dword [ebp - 0x11c]
lea eax, [ebp - 0x10c]
push eax
call fcn.004125a4
cmp eax, edi
jl 0x412a11
push edi
lea eax, [ebp - 0x118]
push eax
push 1
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, edi
jne 0x41299d
call fcn.0041254d
jmp 0x41299f
xor eax, eax
cmp eax, edi
jl 0x412a11
cmp dword [ebp - 0x118], 1
jne 0x412a11
mov eax, dword [ebp - 0x104]
cmp dword [eax - 0xc], edi
mov eax, dword [ebp - 0x110]
jne 0x4129cd
cmp al, 0x20
je 0x412975
cmp al, 9
je 0x412975
cmp al, 0xd
je 0x412975
cmp al, 0xa
je 0x412975
cmp al, 0xd
je 0x412a11
cmp al, 0xa
je 0x412a11
push eax
lea ecx, [ebp - 0x104]
call fcn.004069ee
mov eax, dword [ebp - 0x104]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x12c]
cmp eax, dword [ecx - 0xc]
jne 0x412975
push ecx
push dword [ebp - 0x104]
call fcn.0042d042
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
pop ecx
pop ecx
jne 0x412975
cmp dword [ebp - 0x10c], edi
je 0x412a2b
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x10c], edi
test bl, bl
je 0x412ccb
lea edi, [ebp - 0x104]
call fcn.0040a663
mov edi, dword [ebp - 0x13c]
lea eax, [ebp - 0x104]
lea ecx, [edi + 0x34]
push eax
call fcn.0040222e
push 0x449cd0
push 0xe
push 0x20b8
call fcn.004262bf
add esp, 0xc
push eax
lea ecx, [ebp - 0x108]
call fcn.00401f1d
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 0xf
call fcn.0041d029
pop ecx
pop ecx
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x108]
add ecx, 0xfffffff0
call fcn.0040113c
push 0x449c48
lea ecx, [ebp - 0x100]
call fcn.00401f1d
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x16c]
push eax
mov byte [ebp - 4], 0x12
call fcn.00425f81
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x100]
add ecx, 0xfffffff0
call fcn.0040113c
push esi
lea ecx, [ebp - 0x114]
call fcn.004021e1
push esi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x15
call fcn.004021e1
push esi
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x16
call fcn.004021e1
push 0x44aed8
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0x17
call fcn.00401f1d
mov byte [ebp - 4], 0x18
lea esi, [ebp - 0x16c]
call fcn.004261f1
test al, al
je 0x412c69
lea eax, [ebp - 0x144]
push eax
mov ecx, esi
call fcn.00426274
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x19
call fcn.0040222e
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x144]
add ecx, 0xfffffff0
call fcn.0040113c
lea esi, [ebp - 0x114]
call fcn.00425861
mov eax, esi
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0041d029
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x1a
call fcn.0040222e
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.0040113c
lea esi, [ebp - 0x108]
call fcn.00425861
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x110]
call fcn.004067f9
pop ecx
pop ecx
lea ecx, [ebp - 0x158]
push 0x44aedc
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.0040684a
pop ecx
pop ecx
mov ecx, esi
push ecx
lea ecx, [ebp - 0x130]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1c
call fcn.004067f9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.0040113c
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x138]
add ecx, 0xfffffff0
call fcn.0040113c
push 0x44aee0
lea ecx, [ebp - 0x110]
call fcn.0040227b
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x130]
mov eax, dword [edx - 0xc]
add ecx, eax
cmp ecx, 0x400
jg 0x412c58
push eax
push edx
lea ecx, [ebp - 0x100]
call fcn.00401ff8
mov edx, dword [ebp - 0x130]
lea ecx, [edx - 0x10]
mov byte [ebp - 4], 0x18
call fcn.0040113c
jmp 0x412b22
lea eax, [ebp - 0x100]
lea ecx, [edi + 0x38]
push eax
call fcn.0040222e
mov ecx, dword [ebp - 0x110]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x100]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x108]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x114]
add ecx, 0xfffffff0
call fcn.0040113c
lea esi, [ebp - 0x16c]
call fcn.00426085
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040113c
xor edi, edi
cmp dword [ebp - 0x10c], edi
je 0x412cdf
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x104]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x12c]
add ecx, 0xfffffff0
call fcn.0040113c
mov dword [ebp - 4], 0xa
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 5
call fcn.00423c46
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x15c]
add ecx, 0xfffffff0
call fcn.0040113c
cmp byte [ebp - 0xf9], 0
je 0x412de6
mov edi, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x124]
call fcn.00402078
call fcn.0041e0e6
test al, al
jne 0x412da8
push 0x10
call fcn.0041e0a8
pop ecx
test al, al
jne 0x412da8
mov ecx, dword [ebp - 0x120]
push 0x449a50
call fcn.0040227b
jmp 0x412de6
push dword [ebp - 0x124]
lea eax, [ebp - 0x128]
push dword [ebp - 0x154]
mov esi, edi
push dword [ebp - 0x128]
push eax
call fcn.00412e26
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x120]
push eax
call fcn.0040222e
mov ecx, dword [ebp - 0x128]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x150]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040113c
mov eax, dword [ebp - 0x120]
call fcn.00431ef3
ret 0x1c