Function at 0x4306a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x62acc0]
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 0x43070c
cmp ecx, 2
je 0x43070c
cmp ecx, 1
jne 0x4306f4
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4306df
push dword [edi]
call fcn.004333b0
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [esi + 4]
jl 0x430837
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x4306d0
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x4307bf
cmp eax, 0xffffffff
je 0x43072e
push dword [edi]
call fcn.004333b0
add esp, 4
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x4306f4
cmp esi, dword [eax + 0x10]
jge 0x43074a
push eax
call fcn.00433430
add esp, 4
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x10], ecx
jge 0x4307aa
test esi, esi
je 0x4307a3
cmp dword [esi + 0x18], 0
je 0x4307a3
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4307a3
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.00433f20
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 0x430754
push dword [edi + 0x138]
push esi
call fcn.004336b0
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.00433a50
mov esi, eax
add esp, 0x10
test esi, esi
jg 0x4307eb
push dword [edi]
call fcn.004333b0
add esp, 4
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x430925
test esi, esi
jle 0x430814
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
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.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, dword [esi + 0x10]
jge 0x430875
test esi, esi
je 0x430875
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.00433f20
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 0x4308d6
nop dword [eax]
test esi, esi
je 0x4308cf
cmp dword [esi + 0x18], 0
je 0x4308cf
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x4308cf
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.00433f20
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 0x430880
lea eax, [ebp - 0x338]
push eax
push ecx
mov ecx, edi
call fcn.0042fb60
test byte [ebp - 0x230], 0x10
je 0x43093a
cmp dword [ebp + 0x14], 1
je 0x430925
mov al, byte [ebx]
cmp al, 0x2f
je 0x43090c
cmp al, 0x5c
je 0x43090c
test al, al
je 0x430908
cmp byte [ebx + 1], 0x3a
je 0x43090c
xor dl, dl
jmp 0x43090e
mov dl, 1
xor ecx, ecx
lea eax, [edi + 0x140]
test dl, dl
push ebx
cmove ecx, eax
push ecx
call fcn.0042f940
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x430a33
mov cl, byte [ebx]
mov esi, ebx
mov eax, ebx
test cl, cl
je 0x430968
nop
cmp cl, 0x2f
je 0x43095d
cmp cl, 0x5c
je 0x43095d
inc eax
jmp 0x430962
lea esi, [eax + 1]
mov eax, esi
mov cl, byte [eax]
test cl, cl
jne 0x430950
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00503df9
add esp, 0xc
cmp esi, ebx
jne 0x43098a
mov byte [ebp - 0x108], 0
jmp 0x4309bc
mov eax, esi
sub eax, ebx
cmp eax, 0x104
jae 0x430b35
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x4309e2
cmp al, 0x5c
je 0x4309e2
test al, al
je 0x4309bc
cmp byte [ebp - 0x107], 0x3a
je 0x4309e2
push esi
lea eax, [ebp - 0x108]
push eax
lea ebx, [edi + 0x140]
push ebx
lea eax, [ebp - 0x20c]
push 0x5a3028
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x430a01
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x5a3020
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.0042f940
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 0x430a50
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x138]
push dword [edi]
call fcn.004336b0
add esp, 8
cmp dword [edi + 0x13c], 0
jne 0x430a80
push 0x4000
call fcn.004ff24d
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.00433a50
mov esi, eax
add esp, 0x10
cmp esi, 0xffffff96
je 0x430aff
test esi, esi
js 0x430ad1
jle 0x430ac4
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 0x430ad8
cmp byte [ebp - 0x339], 0
jne 0x430adf
test esi, esi
jne 0x430a80
mov esi, 0x5000000
jmp 0x430b04
mov esi, 0x400
jmp 0x430b04
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 0x430b04
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x430b11
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call fcn.004333b0
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.004fe8dc
mov esp, ebp
pop ebp
ret 0x10
call fcn.004fed6e
int3