Function at 0x4308f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, 3
je 0x43095c
cmp ecx, 2
je 0x43095c
cmp ecx, 1
jne 0x430944
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x43092f
push dword [edi]
call fcn.004335f0
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [esi + 4]
jl 0x430a87
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x430920
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x430a0f
cmp eax, 0xffffffff
je 0x43097e
push dword [edi]
call fcn.004335f0
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x430944
cmp esi, dword [eax + 0x10]
jge 0x43099a
push eax
call fcn.00433670
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x10], ecx
jge 0x4309fa
test esi, esi
je 0x4309f3
cmp dword [esi + 0x18], 0
je 0x4309f3
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4309f3
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00434160
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jl 0x4309a4
push dword [edi + 0x138]
push esi
call fcn.004338f0
mov eax, dword [ebp + 8]
add esp, 8
mov dword [edi + 4], eax
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
push ebx
push dword [edi]
call fcn.00433c90
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x430a3b
push dword [edi]
call fcn.004335f0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x430b75
test esi, esi
jle 0x430a64
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
pop edi
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, dword [esi + 0x10]
jge 0x430ac5
test esi, esi
je 0x430ac5
mov eax, dword [esi + 0x24]
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push eax
lea eax, [esi + 0x28]
mov dword [esi + 0x10], 0
push eax
push esi
call fcn.00434160
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jge 0x430b26
nop dword [eax]
test esi, esi
je 0x430b1f
cmp dword [esi + 0x18], 0
je 0x430b1f
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x430b1f
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
push 0
push 0
push 0
push 0
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea eax, [esi + 0x78]
push 0
push 0
push eax
lea eax, [esi + 0x28]
push eax
push esi
call fcn.00434160
mov ecx, dword [ebp + 8]
add esp, 0x24
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jl 0x430ad0
lea eax, [ebp - 0x338]
push eax
push ecx
mov ecx, edi
call fcn.0042fda0
test byte [ebp - 0x230], 0x10
je 0x430b8a
cmp dword [ebp + 0x14], 1
je 0x430b75
mov al, byte [ebx]
cmp al, 0x2f
je 0x430b5c
cmp al, 0x5c
je 0x430b5c
test al, al
je 0x430b58
cmp byte [ebx + 1], 0x3a
je 0x430b5c
xor dl, dl
jmp 0x430b5e
mov dl, 1
xor ecx, ecx
lea eax, [edi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.0042fb80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x430c83
mov cl, byte [ebx]
mov esi, ebx
mov eax, ebx
test cl, cl
je 0x430bb8
nop
cmp cl, 0x2f
je 0x430bad
cmp byte [eax], 0x5c
je 0x430bad
inc eax
jmp 0x430bb2
lea esi, [eax + 1]
mov eax, esi
mov cl, byte [eax]
test cl, cl
jne 0x430ba0
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.005048a9
add esp, 0xc
cmp esi, ebx
jne 0x430bda
mov byte [ebp - 0x108], 0
jmp 0x430c0c
mov eax, esi
sub eax, ebx
cmp eax, 0x104
jae 0x430d85
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x430c32
cmp al, 0x5c
je 0x430c32
test al, al
je 0x430c0c
cmp byte [ebp - 0x107], 0x3a
je 0x430c32
push esi
lea eax, [ebp - 0x108]
push eax
lea ebx, [edi + 0x140]
push ebx
lea eax, [ebp - 0x20c]
push 0x5a4058
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x430c51
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x5a4050
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ebx, ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0042fb80
add esp, 8
lea eax, [ebp - 0x20c]
push 0
push dword [ebp - 0x230]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x430ca0
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x138]
push dword [edi]
call fcn.004338f0
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x430cd0
push 0x4000
call fcn.004ffbb0
add esp, 4
mov dword [edi + 0x13c], eax
nop dword [eax]
lea eax, [ebp - 0x339]
push eax
push 0x4000
push dword [edi + 0x13c]
push dword [edi]
call fcn.00433c90
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x430d4f
test esi, esi
js 0x430d21
jle 0x430d14
push 0
lea eax, [ebp - 0x340]
push eax
push esi
push dword [edi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430d28
cmp byte [ebp - 0x339], 0
jne 0x430d2f
test esi, esi
jne 0x430cd0
mov esi, 0x5000000
jmp 0x430d54
mov esi, 0x400
jmp 0x430d54
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor esi, esi
jmp 0x430d54
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x430d61
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.004335f0
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
test esi, esi
cmovne eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ff23c
mov esp, ebp
pop ebp
ret 0x10
call fcn.004ff6cf
int3