Function at 0x100bf960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f3010
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x1012d034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x10
push str.Yj8EbvtiIXgeQ7o9
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100080d0
mov byte [ebp - 4], 1
mov bl, 0x10
mov al, byte [ebp - 0x18]
xor edi, edi
and al, 0xf
sub bl, al
movsx edx, bl
mov dword [ebp - 0x108], edx
je 0x100bfa5a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x100bfb70
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x100bfb70
cmp dword [ebp - 0x14], esi
jae 0x100bfa11
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10007e90
mov edx, dword [ebp - 0x108]
jmp 0x100bfa26
test esi, esi
jne 0x100bfa2b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
test esi, esi
setne al
test al, al
je 0x100bfa55
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [ecx + eax], bl
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [eax + esi], 0
mov ecx, dword [ebp - 0x18]
inc edi
cmp edi, edx
jb 0x100bf9e0
cmp dword [ebp - 0x14], 0x10
lea edi, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x100], 0
cmovae edi, dword [ebp - 0x28]
cmp dword [ebp + 0x1c], 0x10
push 0x88
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x108], eax
add eax, 0x10
cdq
and edx, 0xf
mov dword [ebp - 0x104], 0
lea esi, [edx + eax]
and esi, 0xfffffff0
inc esi
push esi
call fcn.100e0c76
push esi
mov ebx, eax
push 0
push ebx
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_961]
add esp, 0x20
push 0
push edi
push 0
call dword [sym.imp.LIBEAY32.dll_Ordinal_2720]
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_2894]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x14
cmp eax, 1
jne 0x100bfb4b
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push dword [ebp - 0x110]
push eax
lea eax, [ebp - 0x100]
push ebx
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_276]
add esp, 0x14
cmp eax, 1
jne 0x100bfb4b
mov esi, dword [ebp - 0x104]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebx + esi]
push eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_2660]
add esp, 0xc
cmp eax, 1
je 0x100bfb7b
test ebx, ebx
je 0x100bfb59
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov bl, 1
jmp 0x100bfda7
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
add esi, dword [ebp - 0x104]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_256]
add esp, 4
mov dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
push esi
push ebx
call fcn.100080d0
test ebx, ebx
je 0x100bfbbb
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 3
xor esi, esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100bfc2e
cmp eax, esi
jbe 0x100bfc89
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
movzx eax, byte [eax + esi]
push eax
lea eax, [ebp - 0x40]
push 0x1010b48c
push eax
call fcn.10039df0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.10007bd0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0x10
jb 0x100bfc26
push dword [ebp - 0x40]
call edi
add esp, 4
mov eax, dword [ebp - 0x48]
inc esi
cmp eax, esi
ja 0x100bfbe2
push 2
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x1010b494
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10001e10
mov edx, dword [ebp - 0x10c]
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x100bfc63
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
cmp word [edx], ax
jne 0x100bfc94
xor ecx, ecx
jmp 0x100bfcaf
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100bfca0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.10001e10
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x128]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x114], 8
push ecx
cmovae eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
add esp, 8
mov esi, eax
cmp dword [ebp - 0x114], 8
jb 0x100bfcfc
push dword [ebp - 0x128]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
jb 0x100bfd27
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
jne 0x100bfd43
xor bl, bl
jmp 0x100bfd67
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push esi
cmovae eax, dword [ebp - 0x70]
push 1
push dword [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push esi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov bl, 1
cmp dword [ebp - 0x5c], 0x10
jb 0x100bfd75
push dword [ebp - 0x70]
call edi
add esp, 4
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jb 0x100bfd95
push dword [ebp - 0x58]
call edi
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x14], 0x10
jb 0x100bfdb5
push dword [ebp - 0x28]
call edi
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x100bfdd5
push dword [ebp + 8]
call edi
add esp, 4
mov al, bl
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.100ebd7b
mov esp, ebp
pop ebp
ret 0x18