Function at 0x430c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x427c
call fcn.0043b360
mov eax, dword [0x458ac0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push ebx
mov dword [ebp - 0x4274], ecx
cmp dword [ebp + 0x14], 3
je 0x430c6a
cmp dword [ebp + 0x14], 2
je 0x430c6a
cmp dword [ebp + 0x14], 1
je 0x430c6a
mov eax, 0x10000
jmp 0x43111b
cmp dword [ebp + 0x14], 3
jne 0x430d97
mov eax, dword [ebp - 0x4274]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x430d2b
mov edx, dword [ebp - 0x4274]
cmp dword [edx + 4], 0xffffffff
je 0x430ca3
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
push ecx
call fcn.00430280
add esp, 4
mov edx, dword [ebp - 0x4274]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x430cca
mov eax, 0x10000
jmp 0x43111b
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x430ceb
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
push ecx
call fcn.0042fa10
add esp, 4
mov edx, dword [ebp - 0x4274]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x430d0e
mov edx, dword [ebp - 0x4274]
mov eax, dword [edx]
push eax
call fcn.0042fa80
add esp, 4
jmp 0x430ceb
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.0042fdc0
add esp, 4
mov eax, dword [ebp - 0x4274]
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 - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.0042ff80
add esp, 0xc
mov dword [ebp - 0x414c], eax
cmp dword [ebp - 0x414c], 0
jle 0x430d5d
mov eax, 0x600
jmp 0x43111b
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
push ecx
call fcn.00430280
add esp, 4
mov edx, dword [ebp - 0x4274]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x414c], 0
jne 0x430d8d
xor eax, eax
jmp 0x43111b
mov eax, 0x5000000
jmp 0x43111b
mov eax, dword [ebp - 0x4274]
cmp dword [eax + 4], 0xffffffff
je 0x430db4
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.00430280
add esp, 4
mov eax, dword [ebp - 0x4274]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x430ddb
mov eax, 0x10000
jmp 0x43111b
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x430dfc
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.0042fa10
add esp, 4
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x430e1f
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
push ecx
call fcn.0042fa80
add esp, 4
jmp 0x430dfc
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4274]
call fcn.00430480
mov ecx, dword [ebp - 0x38]
and ecx, 0x10
je 0x430e6c
cmp dword [ebp + 0x14], 1
jne 0x430e4a
xor eax, eax
jmp 0x43111b
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x4274]
add eax, 0x138
push eax
call fcn.00430b10
add esp, 8
xor eax, eax
jmp 0x43111b
cmp dword [ebp + 0x14], 1
jne 0x430e7d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x430ff6
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x4150], edx
mov eax, dword [ebp - 0x4150]
mov dword [ebp - 0x4154], eax
mov ecx, dword [ebp - 0x4154]
movsx edx, byte [ecx]
test edx, edx
je 0x430edb
mov eax, dword [ebp - 0x4154]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x430ebb
mov edx, dword [ebp - 0x4154]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x430eca
mov ecx, dword [ebp - 0x4154]
add ecx, 1
mov dword [ebp - 0x4150], ecx
mov edx, dword [ebp - 0x4154]
add edx, 1
mov dword [ebp - 0x4154], edx
jmp 0x430e92
mov eax, dword [ebp - 0x4150]
cmp eax, dword [ebp + 0xc]
je 0x430fd8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4260]
push edx
call fcn.0043ba60
add esp, 8
mov eax, dword [ebp - 0x4150]
sub eax, dword [ebp + 0xc]
mov byte [ebp + eax - 0x4261], 0
movsx ecx, byte [ebp - 0x4260]
cmp ecx, 0x2f
je 0x430f3e
movsx edx, byte [ebp - 0x4260]
cmp edx, 0x5c
je 0x430f3e
movsx eax, byte [ebp - 0x425f]
cmp eax, 0x3a
je 0x430f3e
mov dword [ebp - 0x4278], 0
jmp 0x430f48
mov dword [ebp - 0x4278], 1
mov cl, byte [ebp - 0x4278]
mov byte [ebp - 0x4155], cl
push 0x450458
lea edx, [ebp - 0x4260]
push edx
call fcn.0043dd20
add esp, 8
mov dword [ebp - 0x4270], eax
movzx ebx, byte [ebp - 0x4155]
xor eax, eax
cmp dword [ebp - 0x4270], 0
setne al
push 0x450454
lea ecx, [ebp - 0x4260]
push ecx
mov dword [ebp - 0x427c], eax
call fcn.0043dd20
add esp, 8
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x427c]
or ecx, eax
or ebx, ecx
mov byte [ebp - 0x4155], bl
movzx edx, byte [ebp - 0x4155]
test edx, edx
jne 0x430fd8
lea eax, [ebp - 0x4260]
push eax
mov ecx, dword [ebp - 0x4274]
add ecx, 0x138
push ecx
call fcn.00430b10
add esp, 8
push 0
mov edx, dword [ebp - 0x38]
push edx
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x431006
mov eax, 0x200
jmp 0x43111b
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.0042fdc0
add esp, 4
mov byte [ebp - 0x142], 0
push 0x4000
lea eax, [ebp - 0x4148]
push eax
mov ecx, dword [ebp - 0x4274]
mov edx, dword [ecx]
push edx
call fcn.0042ff80
add esp, 0xc
mov dword [ebp - 0x4264], eax
cmp dword [ebp - 0x4264], 0
jge 0x431053
mov byte [ebp - 0x142], 1
jmp 0x431099
cmp dword [ebp - 0x4264], 0
jne 0x43105e
jmp 0x431099
push 0
lea eax, [ebp - 0x426c]
push eax
mov ecx, dword [ebp - 0x4264]
push ecx
lea edx, [ebp - 0x4148]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x4268], eax
cmp dword [ebp - 0x4268], 0
jne 0x431097
mov byte [ebp - 0x142], 1
jmp 0x431099
jmp 0x43101e
mov byte [ebp - 0x141], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileType]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x4310c5
movzx edx, byte [ebp - 0x142]
test edx, edx
jne 0x4310c5
mov byte [ebp - 0x141], 1
movzx eax, byte [ebp - 0x141]
test eax, eax
je 0x4310e6
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x4310f6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x4274]
mov ecx, dword [eax]
push ecx
call fcn.00430280
add esp, 4
movzx edx, byte [ebp - 0x142]
test edx, edx
je 0x431119
mov eax, 0x400
jmp 0x43111b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043b34a
mov esp, ebp
pop ebp
ret 0x10