Function at 0x10030600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1067c
call fcn.100c3dd0
mov eax, dword [0x10109610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
mov dword [ebp - 0x10660], edi
mov dword [ebp - 0x1065c], eax
jne 0x10030649
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b2e5c
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x10030656
lea eax, [edi + 0x28]
mov dword [ebp - 0x1065c], eax
push eax
call fcn.100308d0
test eax, eax
je 0x10030634
lea esi, [ebp - 0x10658]
call fcn.10030500
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10030670
sub eax, edx
cmp byte [ebp + eax - 0x10659], 0x5c
jne 0x1003069b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b2e5c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x1065c]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.100b358f
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x100306e0
push 0x100dc9f4
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x105
lea edx, [ebp - 0x420]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x10658]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.100b36fe
add esp, 0xc
push edi
lea eax, [ebp - 0x210]
call fcn.10030970
test eax, eax
je 0x10030634
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10664], eax
cmp eax, 0xffffffff
je 0x10030634
mov ecx, dword [edi + 8]
call fcn.1002fcf0
test eax, eax
jne 0x10030634
mov dword [edi + 0x18], 2
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x10420]
push ecx
push edx
call fcn.1002fe80
mov esi, eax
add esp, 8
test esi, esi
jle 0x10030878
mov edx, dword [ebp - 0x10664]
push 0
lea eax, [ebp - 0x1065c]
push eax
push esi
lea ecx, [ebp - 0x10420]
push ecx
push edx
mov dword [ebp - 0x1065c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10030875
mov eax, dword [ebp - 0x1065c]
cmp eax, esi
jne 0x10030875
add dword [ebx + 0xd0], eax
mov esi, dword [ebx + 0xc8]
mov edi, dword [ebx + 0xcc]
adc dword [ebx + 0xd4], 0
mov eax, esi
or eax, edi
je 0x10030863
mov ecx, dword [ebx + 0xd4]
mov edx, dword [ebx + 0xd0]
push 0
push 0x64
push ecx
push edx
call fcn.100bc8d0
push edi
push esi
push edx
push eax
call fcn.100bb820
mov dword [ebp - 0x10678], eax
mov eax, edx
and edx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0x10674], edx
fild qword [ebp - 0x10678]
mov dword [ebp - 0x1066c], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0x10670], 0
fild qword [ebp - 0x10670]
push ecx
fchs
faddp st(1)
fstp dword [esp]
call eax
mov edi, dword [ebp - 0x10660]
add esp, 4
jmp 0x10030776
mov edi, dword [ebp - 0x10660]
mov byte [ebx + 0xdc], 0
jmp 0x10030776
or esi, 0xffffffff
mov ecx, dword [ebp - 0x10664]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 8]
push edx
call fcn.10030100
add esp, 4
test esi, esi
jne 0x100308a7
mov eax, dword [ebp - 0x10440]
push eax
lea eax, [ebp - 0x210]
call fcn.100309b0
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.100b2e5c
mov esp, ebp
pop ebp
ret 8