Function at 0x42d8f0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x424c
call fcn.0045a270
mov eax, dword [0x48e820]
xor eax, esp
mov dword [esp + 0x4244], eax
mov eax, dword [esp + 0x4254]
push ebx
push ebp
mov ebp, dword [esp + 0x4258]
push esi
or esi, 0xffffffff
cmp dword [ebp + 4], esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], eax
je 0x42d930
mov edi, dword [ebp]
call fcn.0042d3b0
mov dword [ebp + 4], esi
mov esi, dword [ebp]
cmp ebx, dword [esi + 4]
jl 0x42d945
mov eax, 0x10000
jmp 0x42db76
cmp ebx, dword [esi + 0x10]
jge 0x42d94f
call fcn.0042cdc0
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], ebx
jge 0x42d9aa
mov esi, dword [ebp]
test esi, esi
je 0x42d9a2
cmp dword [esi + 0x18], 0
je 0x42d9a2
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x42d9a2
mov edx, dword [esi + 0x50]
add edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push 0
mov dword [esi + 0x10], eax
lea edx, [edx + ecx + 0x2e]
add dword [esi + 0x14], edx
push 0
lea eax, [esi + 0x78]
push eax
lea ecx, [esi + 0x28]
push ecx
mov eax, esi
call fcn.0042c970
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov edx, dword [ebp]
cmp dword [edx + 0x10], ebx
jl 0x42d957
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
call fcn.0042d4a0
test byte [esp + 0x120], 0x10
je 0x42d9dc
lea ecx, [esp + 0x1c]
push ecx
add ebp, 0x138
push ebp
call fcn.0042d7f0
add esp, 8
xor eax, eax
jmp 0x42db76
mov edi, dword [esp + 0x14]
mov al, byte [edi]
test al, al
mov esi, edi
mov ecx, edi
je 0x42da9c
mov edi, edi
cmp al, 0x2f
je 0x42d9f8
cmp al, 0x5c
jne 0x42d9fb
lea esi, [ecx + 1]
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x42d9f0
cmp esi, edi
je 0x42da9c
lea edx, [esp + 0x148]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x42da18
sub esi, edi
mov byte [esp + esi + 0x147], cl
mov al, byte [esp + 0x148]
cmp al, 0x2f
je 0x42da4a
cmp al, 0x5c
je 0x42da4a
cmp byte [esp + 0x149], 0x3a
je 0x42da4a
xor bl, bl
jmp 0x42da4c
mov bl, 1
lea edx, [esp + 0x148]
push 0x480bf0
push edx
call fcn.00455250
mov esi, eax
lea eax, [esp + 0x150]
push 0x480bf4
push eax
call fcn.00455250
add esp, 0x10
test eax, eax
setne cl
test esi, esi
setne dl
or cl, dl
or cl, bl
jne 0x42da9c
lea eax, [esp + 0x148]
push eax
lea ecx, [ebp + 0x138]
push ecx
call fcn.0042d7f0
add esp, 8
mov edx, dword [esp + 0x120]
push 0
push edx
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42dac9
mov eax, 0x200
jmp 0x42db76
mov eax, dword [ebp]
call fcn.0042d0f0
lea eax, [esp + 0x250]
push eax
mov eax, dword [ebp]
mov ecx, 0x4000
xor bl, bl
call fcn.0042d200
add esp, 4
test eax, eax
jl 0x42db2a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x42db2c
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x25c]
push edx
push esi
call edi
test eax, eax
je 0x42db2a
lea eax, [esp + 0x250]
push eax
mov eax, dword [ebp]
mov ecx, 0x4000
call fcn.0042d200
add esp, 4
test eax, eax
jge 0x42daf5
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x42db5b
test bl, bl
jne 0x42db5b
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp]
call fcn.0042d3b0
neg bl
sbb ebx, ebx
and ebx, 0x400
mov eax, ebx
mov ecx, dword [esp + 0x4254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004540ed
add esp, 0x424c
ret 8