Function at 0x1002d2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1067c
call fcn.100c08d0
mov eax, dword [0x10104610]
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 0x1002d339
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x1002d346
lea eax, [edi + 0x28]
mov dword [ebp - 0x1065c], eax
push eax
call fcn.1002d5c0
test eax, eax
je 0x1002d324
lea esi, [ebp - 0x10658]
call fcn.1002d1f0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d360
sub eax, edx
cmp byte [ebp + eax - 0x10659], 0x5c
jne 0x1002d38b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x1065c]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.100b0142
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x1002d3d0
push 0x100d99f4
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.100b02b1
add esp, 0xc
push edi
lea eax, [ebp - 0x210]
call fcn.1002d660
test eax, eax
je 0x1002d324
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 0x1002d324
mov ecx, dword [edi + 8]
call fcn.1002c9e0
test eax, eax
jne 0x1002d324
mov dword [edi + 0x18], 2
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x10420]
push ecx
push edx
call fcn.1002cb70
mov esi, eax
add esp, 8
test esi, esi
jle 0x1002d568
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 0x1002d565
mov eax, dword [ebp - 0x1065c]
cmp eax, esi
jne 0x1002d565
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 0x1002d553
mov ecx, dword [ebx + 0xd4]
mov edx, dword [ebx + 0xd0]
push 0
push 0x64
push ecx
push edx
call fcn.100b9340
push edi
push esi
push edx
push eax
call fcn.100b8320
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 0x1002d466
mov edi, dword [ebp - 0x10660]
mov byte [ebx + 0xdc], 0
jmp 0x1002d466
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.1002cdf0
add esp, 4
test esi, esi
jne 0x1002d597
mov eax, dword [ebp - 0x10440]
push eax
lea eax, [ebp - 0x210]
call fcn.1002d6a0
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.100afa0c
mov esp, ebp
pop ebp
ret 8