Function at 0x4255c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x459c
call fcn.005010b0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x459c]
mov ecx, 0x1167
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x5ddc34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x14], 3
je 0x42560d
cmp dword [ebp + 0x14], 2
je 0x42560d
cmp dword [ebp + 0x14], 1
je 0x42560d
mov eax, 0x10000
jmp 0x425ab5
cmp dword [ebp + 0x14], 3
jne 0x425707
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x4256ad
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0xffffffff
je 0x42563d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004247a0
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x42565e
mov eax, 0x10000
jmp 0x425ab5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x425679
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004239c0
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x425696
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call fcn.00423a50
add esp, 4
jmp 0x425679
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004240a0
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004242f0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4256d6
mov eax, 0x600
jmp 0x425ab5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004247a0
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0xc], 0
jne 0x4256fd
xor eax, eax
jmp 0x425ab5
mov eax, 0x5000000
jmp 0x425ab5
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x42571e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004247a0
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x42573f
mov eax, 0x10000
jmp 0x425ab5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x42575a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.004239c0
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x425777
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.00423a50
add esp, 4
jmp 0x42575a
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00424b70
mov ecx, dword [ebp - 0x34]
and ecx, 0x10
je 0x4257da
cmp dword [ebp + 0x14], 1
jne 0x42579f
xor eax, eax
jmp 0x425ab5
push 0x103
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x138]
push eax
call fcn.00425b50
add esp, 0xc
lea ecx, [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x138
push edx
call fcn.00425450
add esp, 8
xor eax, eax
jmp 0x425ab5
cmp dword [ebp + 0x14], 1
jne 0x4257ee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x354], eax
jmp 0x42595d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], edx
mov eax, dword [ebp - 0x35c]
movzx ecx, word [eax]
test ecx, ecx
je 0x42584c
mov edx, dword [ebp - 0x35c]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x42582c
mov ecx, dword [ebp - 0x35c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x42583b
mov eax, dword [ebp - 0x35c]
add eax, 2
mov dword [ebp - 0x358], eax
mov ecx, dword [ebp - 0x35c]
add ecx, 2
mov dword [ebp - 0x35c], ecx
jmp 0x425803
mov edx, dword [ebp - 0x358]
cmp edx, dword [ebp + 0xc]
je 0x425933
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x568]
push ecx
call fcn.005034d0
add esp, 8
mov edx, dword [ebp - 0x358]
sub edx, dword [ebp + 0xc]
sar edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x56a], ax
movzx ecx, word [ebp - 0x568]
cmp ecx, 0x2f
je 0x4258b3
movzx edx, word [ebp - 0x568]
cmp edx, 0x5c
je 0x4258b3
movzx eax, word [ebp - 0x566]
cmp eax, 0x3a
je 0x4258b3
mov dword [ebp - 0x459c], 0
jmp 0x4258bd
mov dword [ebp - 0x459c], 1
mov cl, byte [ebp - 0x459c]
mov byte [ebp - 0x56d], cl
movzx ebx, byte [ebp - 0x56d]
push 0x59b960
lea edx, [ebp - 0x568]
push edx
call fcn.00401cad
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x59b968
lea eax, [ebp - 0x568]
push eax
call fcn.00401cad
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or ebx, esi
mov byte [ebp - 0x56d], bl
movzx ecx, byte [ebp - 0x56d]
test ecx, ecx
jne 0x425933
lea edx, [ebp - 0x568]
push edx
mov eax, dword [ebp - 8]
add eax, 0x138
push eax
call fcn.00425450
add esp, 8
mov esi, esp
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0xffffffff
jne 0x425970
mov eax, 0x200
jmp 0x425ab5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004240a0
add esp, 4
mov byte [ebp - 0x4579], 0
push 0x4000
lea edx, [ebp - 0x4574]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.004242f0
add esp, 0xc
mov dword [ebp - 0x4580], eax
cmp dword [ebp - 0x4580], 0
jge 0x4259b7
mov byte [ebp - 0x4579], 1
jmp 0x425a0c
cmp dword [ebp - 0x4580], 0
jne 0x4259c2
jmp 0x425a0c
mov esi, esp
push 0
lea edx, [ebp - 0x4588]
push edx
mov eax, dword [ebp - 0x4580]
push eax
lea ecx, [ebp - 0x4574]
push ecx
mov edx, dword [ebp - 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x4590], eax
cmp dword [ebp - 0x4590], 0
jne 0x425a07
mov byte [ebp - 0x4579], 1
jmp 0x425a0c
jmp 0x425985
mov byte [ebp - 0x4591], 0
mov esi, esp
mov eax, dword [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp esi, esp
call fcn.004f4cf0
mov dword [ebp - 0x4598], eax
cmp dword [ebp - 0x4598], 1
jne 0x425a4a
movzx ecx, byte [ebp - 0x4579]
test ecx, ecx
jne 0x425a4a
mov byte [ebp - 0x4591], 1
movzx edx, byte [ebp - 0x4591]
test edx, edx
je 0x425a77
mov esi, esp
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, esp
call fcn.004f4cf0
cmp dword [ebp + 0x14], 1
je 0x425a93
mov esi, esp
mov ecx, dword [ebp - 0x354]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004f4cf0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call fcn.004247a0
add esp, 4
movzx ecx, byte [ebp - 0x4579]
test ecx, ecx
je 0x425ab3
mov eax, 0x400
jmp 0x425ab5
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x425ae8]
call fcn.004f4c90
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f4d70
add esp, 0x459c
cmp ebp, esp
call fcn.004f4cf0
mov esp, ebp
pop ebp
ret 0x10