Function at 0x10004db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10107962
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
push edi
push ecx
lea edi, [ebp - 0xc0]
mov ecx, 0x2d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x1013620c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x44], 0
je 0x10004e12
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x10004e1e
mov al, 1
jmp 0x100050fe
mov dword [ebp - 0x18], 8
call fcn.100011fe
mov esi, esp
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
cmp esi, esp
call fcn.100d1270
mov dword [ebp - 0x54], eax
call fcn.100011fe
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.100011b3
add esp, 8
movzx eax, al
test eax, eax
je 0x10004e6a
xor al, al
jmp 0x100050fe
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.100010dc
mov dword [ebp - 4], 0
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x48]
call fcn.1000100f
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa0]
call fcn.100010aa
mov edi, eax
lea ecx, [ebp - 0x48]
call fcn.100010cd
add edi, eax
push edi
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000100f
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa8]
call fcn.100010aa
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x4c
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 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.100d1270
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.100011bd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.100011bd
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
je 0x10004f4d
cmp dword [ebp - 0xac], 1
je 0x10004f54
cmp dword [ebp - 0xac], 3
je 0x100050ae
jmp 0x100050cc
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000100f
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb4]
call fcn.100010aa
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.100011bd
cmp dword [ebp - 0x50], 0
jbe 0x1000500b
mov esi, esp
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x48]
call fcn.1000100f
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x98]
or ecx, 1
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.100010aa
push eax
call dword [sym.imp.MSVCR100D.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.100d1270
cmp dword [ebp - 0x50], eax
je 0x1000500b
mov dword [ebp - 0xc0], 1
jmp 0x10005015
mov dword [ebp - 0xc0], 0
mov dl, byte [ebp - 0xc0]
mov byte [ebp - 0x81], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x98]
and eax, 1
je 0x10005045
and dword [ebp - 0x98], 0xfffffffe
lea ecx, [ebp - 0x90]
call fcn.100011bd
movzx ecx, byte [ebp - 0x81]
test ecx, ecx
je 0x10005071
mov byte [ebp - 0x91], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100010a5
mov al, byte [ebp - 0x91]
jmp 0x100050fe
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x49]
test eax, eax
jne 0x1000509a
mov byte [ebp - 0x92], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100010a5
mov al, byte [ebp - 0x92]
jmp 0x100050fe
cmp dword [ebp - 0x50], 0
jne 0x100050ac
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.10001109
jmp 0x100050ea
mov byte [ebp - 0x93], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100010a5
mov al, byte [ebp - 0x93]
jmp 0x100050fe
mov byte [ebp - 0x94], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100010a5
mov al, byte [ebp - 0x94]
jmp 0x100050fe
jmp 0x10004e7d
push edx
mov ecx, ebp
push eax
lea edx, [0x10005138]
call fcn.100d12a0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d1260
add esp, 0xc0
cmp ebp, esp
call fcn.100d1270
mov esp, ebp
pop ebp
ret