Function at 0x43450a
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x486892
call fcn.0046746c
sub esp, 0xc8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x34], ebx
call fcn.00434250
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp word [eax + 0x118], bx
setne byte [ebp - 0xd]
cmp dword [esi + 0x10c], ebx
je 0x4348a2
cmp eax, ebx
je 0x4348a2
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [esi + 4]
push SysReAllocStringLen
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x434590
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
mov dword [ebp - 4], 2
jmp 0x4348a9
push ebx
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00434ac5
test eax, eax
jne 0x4345ad
mov dword [ebp - 4], 3
jmp 0x4348a9
cmp byte [ebp - 0xd], bl
je 0x4345bf
lea ecx, [ebp - 0xac]
call fcn.004042dd
jmp 0x4345c2
mov eax, dword [ebp + 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
jne 0x4345fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
mov dword [esi + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 4
jmp 0x4348a9
mov esi, dword [ebp + 8]
mov eax, 0x400
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x10c]
cmp edi, eax
mov dword [ebp - 0x20], edi
jae 0x434618
mov dword [ebp - 0x18], edi
push dword [ebp - 0x18]
call fcn.004675be
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x104]
test al, 6
pop ecx
mov byte [ebp + 0xf], bl
je 0x434635
mov byte [ebp + 0xf], 1
mov ecx, dword [ebp + 0x14]
push 1
shr al, 2
and al, 1
cmp ecx, ebx
mov byte [ebp - 0xe], al
pop esi
je 0x434655
mov eax, dword [ecx]
push edi
push ebx
call dword [eax]
cmp al, bl
jne 0x4346ea
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x2c], edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call edi
test eax, eax
je 0x4346ec
cmp byte [ebp - 0xe], bl
je 0x434690
cmp byte [ebp + 0xf], bl
je 0x434690
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.004015ee
add esp, 0xc
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
add dword [ebp - 0x28], eax
cmp ecx, ebx
je 0x4346bf
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [ebp - 0x28]
call dword [eax]
cmp al, bl
jne 0x4346ea
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x20], eax
je 0x4346ec
cmp eax, ebx
je 0x4346ec
cmp dword [ebp - 0x20], 0x400
jae 0x4346da
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
jmp 0x43466f
xor esi, esi
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x30]
call edi
cmp esi, ebx
je 0x434762
cmp byte [ebp - 0xe], bl
jne 0x434762
cmp byte [ebp + 0xf], bl
je 0x434762
cmp byte [ebp - 0xd], bl
je 0x434725
lea ecx, [ebp - 0xac]
call fcn.004042dd
jmp 0x434746
push 1
lea eax, [ebp + 0xf]
pop edi
lea ecx, [ebp - 0x5c]
push edi
push eax
push dword [ebp + 0x10]
call fcn.00401884
mov dword [ebp - 0x34], edi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00401a14
push dword [ebp + 8]
push eax
call fcn.0040164c
test byte [ebp - 0x34], 1
pop ecx
mov dword [ebp - 4], ebx
pop ecx
je 0x434762
lea ecx, [ebp - 0x5c]
call fcn.00401093
cmp byte [ebp - 0xd], bl
je 0x43488e
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x434825
mov eax, dword [ebp - 0x20]
push 1
shr eax, 0xe
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x84]
push dword [ebp + 8]
call fcn.00402e7f
lea eax, [ebp + 0x17]
push 1
push eax
lea ecx, [ebp - 0xd4]
push dword [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.00402e7f
lea ecx, [ebp - 0x5c]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00402f2e
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.00402438
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x84]
push eax
call fcn.004172fa
test al, al
je 0x4347ec
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x84]
push eax
call fcn.004024b2
mov edi, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.004042dd
push eax
push 1
mov ecx, esi
call dword [edi + 4]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00402438
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00402438
or dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x84]
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
call fcn.00402e7f
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xac]
push eax
mov byte [ebp - 4], 0xb
call fcn.00434363
lea eax, [ebp - 0x84]
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00478b00
mov esi, eax
lea ecx, [ebp - 0x5c]
neg esi
sbb esi, esi
mov byte [ebp - 4], 0xb
inc esi
call fcn.00402438
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.00402438
push dword [ebp - 0x1c]
call fcn.00439080
pop ecx
mov dword [ebp - 4], 0xd
mov ebx, esi
jmp 0x4348a9
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10