Function at 0x10013910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1f8]
mov ecx, 0x7b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10032420]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x44], 0
je 0x10013973
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0x49]
test ecx, ecx
jne 0x1001397f
mov al, 1
jmp 0x10013c83
mov dword [ebp - 0x24], 8
call fcn.100100e0
mov esi, esp
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
call eax
cmp esi, esp
call fcn.100226a0
mov dword [ebp - 0x1e0], eax
call fcn.100100e0
mov dword [ebp - 0x1d4], eax
lea ecx, [ebp - 0x1e0]
push ecx
lea edx, [ebp - 0x1d4]
push edx
call fcn.10010030
add esp, 8
movzx eax, al
test eax, eax
je 0x100139d7
xor al, al
jmp 0x10013c83
push 0
push 8
lea ecx, [ebp - 0x58]
call fcn.1000ef30
mov dword [ebp - 4], 0
mov esi, esp
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
lea ecx, [ebp - 0x58]
call fcn.1000f1a0
mov dword [ebp - 0x1e8], eax
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1ec]
call fcn.10014bf0
mov edi, eax
lea ecx, [ebp - 0x58]
call fcn.10002450
add edi, eax
push edi
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000f1a0
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1f4]
call fcn.10014bf0
push eax
mov edx, dword [ebp - 0x18]
add edx, 0x4c
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x44]
call dword [sym.imp.MSVCP100D.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
cmp esi, esp
call fcn.100226a0
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1a8]
call fcn.100089f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.100089f0
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1f8], ecx
cmp dword [ebp - 0x1f8], 0
je 0x10013acc
cmp dword [ebp - 0x1f8], 1
je 0x10013ad3
cmp dword [ebp - 0x1f8], 3
je 0x10013c33
jmp 0x10013c51
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x49], 0
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000f1a0
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1ec]
call fcn.10014bf0
mov edx, dword [ebp - 0x30]
sub edx, eax
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call fcn.100089f0
cmp dword [ebp - 0x64], 0
jbe 0x10013b90
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 1
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000f1a0
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov ecx, dword [ebp - 0x1ec]
call fcn.10014bf0
push eax
call dword [sym.imp.MSVCR100D.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.100226a0
cmp dword [ebp - 0x64], eax
je 0x10013b90
mov dword [ebp - 0x1f0], 1
jmp 0x10013b9a
mov dword [ebp - 0x1f0], 0
mov al, byte [ebp - 0x1f0]
mov byte [ebp - 0x17d], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x130]
and ecx, 1
je 0x10013bca
and dword [ebp - 0x130], 0xfffffffe
lea ecx, [ebp - 0x174]
call fcn.100089f0
movzx edx, byte [ebp - 0x17d]
test edx, edx
je 0x10013bf6
mov byte [ebp - 0x15d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002320
mov al, byte [ebp - 0x15d]
jmp 0x10013c83
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0x49]
test ecx, ecx
jne 0x10013c1f
mov byte [ebp - 0x151], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002320
mov al, byte [ebp - 0x151]
jmp 0x10013c83
cmp dword [ebp - 0x64], 0
jne 0x10013c31
push 0
push 8
lea ecx, [ebp - 0x58]
call fcn.10012ce0
jmp 0x10013c6f
mov byte [ebp - 0x145], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002320
mov al, byte [ebp - 0x145]
jmp 0x10013c83
mov byte [ebp - 0x139], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.10002320
mov al, byte [ebp - 0x139]
jmp 0x10013c83
jmp 0x100139ea
push edx
mov ecx, ebp
push eax
lea edx, [0x10013cc0]
call fcn.100226d0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100228c0
add esp, 0x1f8
cmp ebp, esp
call fcn.100226a0
mov esp, ebp
pop ebp
ret