Function at 0x1001d420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eee18
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
call fcn.10012c10
mov word [ebp - 0x3e], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3e]
push ecx
call fcn.10012b80
add esp, 8
movzx edx, al
test edx, edx
je 0x1001d47f
lea eax, [ebp + 8]
push eax
call fcn.10012bc0
add esp, 4
jmp 0x1001d734
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP120.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
test eax, eax
je 0x1001d4ca
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP120.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::pptr_void_const]
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP120.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::epptr_void_const]
cmp esi, eax
jae 0x1001d4ca
lea ecx, [ebp + 8]
push ecx
call fcn.10012bb0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x2c]
call dword [sym.imp.MSVCP120.dll_protected:_wchar_t____thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void_]
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x1001d734
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x50], 0
jne 0x1001d4dd
call fcn.10012c10
jmp 0x1001d734
mov ecx, dword [ebp - 0x2c]
call fcn.10020b50
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
jne 0x1001d535
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
push edx
lea eax, [ebp + 8]
push eax
call fcn.10012bb0
add esp, 4
movzx ecx, ax
push ecx
call fcn.10017e90
add esp, 8
movzx edx, al
test edx, edx
je 0x1001d51e
mov ax, word [ebp + 8]
mov word [ebp - 0x34], ax
jmp 0x1001d527
call fcn.10012c10
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
jmp 0x1001d734
mov dword [ebp - 0x60], 8
lea ecx, [ebp + 8]
push ecx
call fcn.10012bb0
add esp, 4
mov word [ebp - 0x30], ax
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1000b100
mov dword [ebp - 4], 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b3b0
mov ecx, eax
call fcn.1000c000
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.1000b3e0
add esi, eax
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000b3b0
mov ecx, eax
call fcn.1000c000
push eax
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x2e]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x48
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jl 0x1001d702
cmp dword [ebp - 0x44], 1
jle 0x1001d5d8
cmp dword [ebp - 0x44], 3
je 0x1001d6b7
jmp 0x1001d702
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000b3b0
mov ecx, eax
call fcn.1000c000
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x1001d645
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b3b0
mov ecx, eax
call fcn.1000c000
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x1001d645
call fcn.10012c10
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a070
mov ax, word [ebp - 0x40]
jmp 0x1001d734
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x46], 1
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x50], edx
je 0x1001d674
mov ax, word [ebp + 8]
mov word [ebp - 0x3a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a070
mov ax, word [ebp - 0x3a]
jmp 0x1001d734
cmp dword [ebp - 0x38], 0
jbe 0x1001d67c
jmp 0x1001d6b5
lea ecx, [ebp - 0x28]
call fcn.1000b3e0
cmp eax, 0x20
jae 0x1001d697
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.1000b1c0
jmp 0x1001d6b5
call fcn.10012c10
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a070
mov ax, word [ebp - 0x3c]
jmp 0x1001d734
jmp 0x1001d720
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
push edx
movzx eax, word [ebp - 0x30]
push eax
call fcn.10017e90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1001d6dc
mov dx, word [ebp + 8]
mov word [ebp - 0x32], dx
jmp 0x1001d6e5
call fcn.10012c10
mov word [ebp - 0x32], ax
mov ax, word [ebp - 0x32]
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a070
mov ax, word [ebp - 0x48]
jmp 0x1001d734
call fcn.10012c10
mov word [ebp - 0x46], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000a070
mov ax, word [ebp - 0x46]
jmp 0x1001d734
jmp 0x1001d55f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret 4