Function at 0x1002c1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010ab18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x1002c1e8
xor eax, eax
jmp 0x1002c3cb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002c20b
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
add eax, ecx
cmp ecx, eax
jae 0x1002c20b
mov ecx, esi
call dword [sym.imp.MSVCP120.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
jmp 0x1002c3c9
cmp dword [esi + 0x50], 0
jne 0x1002c219
or eax, 0xffffffff
jmp 0x1002c3cb
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea eax, [esi + 0x44]
cmp ecx, eax
jne 0x1002c235
push dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov ecx, esi
push eax
push eax
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
cmp dword [esi + 0x40], 0
jne 0x1002c25a
push dword [esi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR120.dll_fputc]
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov eax, ecx
jmp 0x1002c3cb
mov ecx, 0xf
mov dword [esp + 0x34], 0
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x20]
mov byte [esp + 0x20], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
cmovae eax, dword [esp + 0x20]
mov dword [esp + 0x30], 0
mov byte [esp + 0x1f], bl
mov dword [esp + 0x30], 8
mov byte [eax + 8], 0
mov dword [esp + 0x48], 0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
cmp edi, 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, ebx
lea ecx, [esp + 0x24]
cmovae ecx, ebx
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x33]
push eax
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x1002c395
cmp eax, 1
jg 0x1002c377
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x20]
mov ebx, dword [esp + 0x20]
cmp edi, 0x10
mov ecx, dword [esp + 0x18]
cmovae eax, ebx
sub ecx, eax
mov dword [esp + 0x10], ecx
je 0x1002c344
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [esp + 0x24]
push ecx
cmovae eax, ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp ecx, eax
jne 0x1002c395
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x1f]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x14], eax
jne 0x1002c372
test ecx, ecx
jne 0x1002c2b5
cmp dword [esp + 0x30], 0x20
jae 0x1002c395
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.10028c20
jmp 0x1002c2ad
mov ebx, dword [ebp + 8]
jmp 0x1002c398
cmp eax, 3
jne 0x1002c395
mov edx, dword [esi + 0x50]
mov cl, byte [esp + 0x1f]
call fcn.1002aff0
or ecx, 0xffffffff
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x1002c398
or ebx, 0xffffffff
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x1002c3b4
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10103694
mov esp, ebp
pop ebp
ret 4