Function at 0x4269f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x588790]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x650], edi
cmp esi, 3
je 0x426a43
cmp esi, 2
je 0x426b34
cmp esi, 1
je 0x426b34
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp esi, eax
je 0x426abe
cmp eax, 0xffffffff
je 0x426a5f
mov edi, dword [ebx]
call fcn.00425ef0
mov edi, dword [ebp - 0x650]
mov eax, dword [ebx]
mov dword [ebx + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x426a2b
cmp esi, dword [eax + 0x10]
jge 0x426a82
mov esi, eax
call fcn.00425740
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x650]
mov eax, dword [ebx]
cmp dword [eax + 0x10], esi
jge 0x426aa9
lea esp, [esp]
mov esi, dword [ebx]
call fcn.00425780
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], edx
jl 0x426a90
mov edi, dword [ebp - 0x650]
mov esi, edx
mov eax, dword [ebx + 0x23c]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.00425b10
add esp, 8
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
lea edx, [ebp - 0x649]
push edx
push edi
call fcn.00425c90
mov esi, eax
add esp, 8
test esi, esi
jg 0x426ae7
mov edi, dword [ebx]
call fcn.00425ef0
mov dword [ebx + 4], 0xffffffff
cmp byte [ebp - 0x649], 0
jne 0x426c41
test esi, esi
jle 0x426b10
mov eax, 0x600
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi + 0x6a]
neg eax
sbb eax, eax
and eax, 0x4fff000
add eax, 0x1000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 4], 0xffffffff
je 0x426b47
mov edi, dword [ebx]
call fcn.00425ef0
mov edi, dword [ebp - 0x650]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 4], 0xffffffff
cmp ecx, dword [eax + 4]
jge 0x426a2b
cmp ecx, dword [eax + 0x10]
jge 0x426b74
mov esi, eax
call fcn.00425740
mov edi, dword [ebp - 0x650]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp dword [eax + 0x10], ecx
jge 0x426bdb
jmp 0x426b80
mov esi, dword [ebx]
test esi, esi
je 0x426bc6
cmp dword [esi + 0x18], 0
je 0x426bc6
mov eax, dword [esi + 0x10]
inc eax
cmp eax, dword [esi + 4]
je 0x426bc6
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
xor eax, eax
mov ecx, esi
call fcn.004254e0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], edx
jl 0x426b80
mov edi, dword [ebp - 0x650]
mov esi, dword [ebp + 0x14]
mov ecx, edx
lea eax, [ebp - 0x648]
push eax
push ecx
mov ecx, ebx
call fcn.004261c0
test byte [ebp - 0x43c], 0x10
je 0x426c56
cmp esi, 1
je 0x426c41
movzx eax, word [edi]
cmp eax, 0x2f
je 0x426c11
cmp eax, 0x5c
je 0x426c11
test ax, ax
je 0x426c31
cmp word [edi + 2], 0x3a
jne 0x426c31
push edi
push 0
call fcn.004268c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
push edi
add ebx, 0x244
push ebx
call fcn.004268c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 1
mov esi, edi
je 0x426d0c
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x426c8b
jmp 0x426c70
cmp ax, 0x2f
je 0x426c7c
cmp ax, 0x5c
jne 0x426c7f
lea esi, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x426c70
lea edx, [ebp - 0x210]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x426c95
cmp esi, edi
jne 0x426d2d
xor ecx, ecx
mov word [ebp - 0x210], cx
push esi
lea ecx, [ebp - 0x210]
push ecx
lea edi, [ebx + 0x244]
push edi
lea edx, [ebp - 0x418]
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.004268c0
add esp, 8
mov ecx, dword [ebp - 0x43c]
push 0
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x426d97
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10
mov edx, esi
sub edx, edi
xor eax, eax
sar edx, 1
mov word [ebp + edx*2 - 0x210], ax
mov ax, word [ebp - 0x210]
cmp ax, 0x2f
je 0x426d67
cmp ax, 0x5c
je 0x426d67
test ax, ax
je 0x426cb5
cmp word [ebp - 0x20e], 0x3a
jne 0x426cb5
push esi
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
push eax
push 0
call fcn.004268c0
add esp, 0x18
jmp 0x426ce9
mov eax, dword [ebx + 0x23c]
mov ecx, dword [ebx]
push eax
push ecx
call fcn.00425b10
add esp, 8
cmp dword [ebx + 0x240], 0
jne 0x426dc5
push 0x4000
call fcn.004a47f3
add esp, 4
mov dword [ebx + 0x240], eax
mov dword [ebp - 0x650], 0
nop
mov eax, dword [ebx + 0x240]
lea edx, [ebp - 0x649]
push edx
push eax
mov eax, dword [ebx]
mov ecx, 0x4000
call fcn.00425c90
mov edi, eax
add esp, 8
cmp edi, 0xffffff96
je 0x426e2f
test edi, edi
js 0x426e23
jle 0x426e16
mov edx, dword [ebx + 0x240]
push 0
lea ecx, [ebp - 0x654]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426e3b
cmp byte [ebp - 0x649], 0
jne 0x426e47
test edi, edi
jne 0x426dd0
mov dword [ebp - 0x650], 0x5000000
jmp 0x426e63
mov dword [ebp - 0x650], 0x1000
jmp 0x426e63
mov dword [ebp - 0x650], 0x400
jmp 0x426e63
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x430]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x426e70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebx]
call fcn.00425ef0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x650]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00503edf
mov esp, ebp
pop ebp
ret 0x10