Function at 0x420f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
mov eax, dword [0x48100c]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x420f5f
mov ecx, dword [edi]
call fcn.004205c0
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ebx, dword [ecx + 4]
jl 0x420f8c
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.004310db
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x420f96
call fcn.0041fec0
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jge 0x420fae
nop dword [eax]
mov ecx, dword [edi]
call fcn.0041ff00
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x420fa0
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.004207a0
test byte [esp + 0x224], 0x10
movzx eax, word [esi]
je 0x421026
cmp eax, 0x2f
je 0x421004
cmp eax, 0x5c
je 0x421004
test ax, ax
je 0x420fde
cmp word [esi + 2], 0x3a
je 0x421004
lea ecx, [edi + 0x244]
mov edx, esi
call fcn.00420e20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.004310db
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
mov edx, esi
call fcn.00420e20
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.004310db
mov esp, ebp
pop ebp
ret 0x10
mov ebx, esi
mov ecx, esi
test ax, ax
je 0x42104b
nop
cmp ax, 0x2f
je 0x42103c
cmp ax, 0x5c
jne 0x42103f
lea ebx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x421030
push esi
lea eax, [esp + 0x254]
push 0x104
push eax
call fcn.0043df33
add esp, 0xc
cmp ebx, esi
jne 0x421071
xor eax, eax
mov word [esp + 0x250], ax
jmp 0x4210b1
mov eax, ebx
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x421231
xor ecx, ecx
mov word [esp + eax + 0x250], cx
mov ax, word [esp + 0x250]
cmp ax, 0x2f
je 0x4210db
cmp ax, 0x5c
je 0x4210db
test ax, ax
je 0x4210b1
cmp word [esp + 0x252], 0x3a
je 0x4210db
push ebx
lea eax, [esp + 0x254]
push eax
lea esi, [edi + 0x244]
push esi
lea eax, [esp + 0x464]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, esi
jmp 0x4210fc
push ebx
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x460]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ecx, ecx
lea edx, [esp + 0x250]
call fcn.00420e20
push 0
push dword [esp + 0x228]
lea eax, [esp + 0x460]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x42114f
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x658]
xor ecx, esp
call fcn.004310db
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [edi + 0x23c]
mov ecx, dword [edi]
call fcn.00420210
cmp dword [edi + 0x240], 0
jne 0x421178
push 0x4000
call fcn.00431132
add esp, 4
mov dword [edi + 0x240], eax
xor ebx, ebx
nop word [eax + eax]
mov edx, dword [edi + 0x240]
lea eax, [esp + 0x13]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.00420390
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x421202
test esi, esi
js 0x4211d0
jle 0x4211c6
push 0
lea eax, [esp + 0x250]
push eax
push esi
push dword [edi + 0x240]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4211d7
cmp byte [esp + 0x13], bl
jne 0x4211de
test esi, esi
jne 0x421180
mov ebx, 0x5000000
jmp 0x421207
mov ebx, 0x400
jmp 0x421207
lea eax, [esp + 0x238]
push eax
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x238]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x421207
mov ebx, 0x1000
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004205c0
mov ecx, dword [esp + 0x664]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004310db
mov esp, ebp
pop ebp
ret 0x10
call fcn.00431818
int3