Function at 0x100b29e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2b00
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10115034]
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.10006eb0
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 0x100b2ada
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x100b2bf0
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x100b2bf0
cmp dword [ebp - 0x14], esi
jae 0x100b2a91
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10006c70
mov edx, dword [ebp - 0x108]
jmp 0x100b2aa6
test esi, esi
jne 0x100b2aab
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 0x100b2ad5
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 0x100b2a60
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.100d0ba0
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 0x100b2bcb
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 0x100b2bcb
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 0x100b2bfb
test ebx, ebx
je 0x100b2bd9
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 0x100b2e27
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.10006eb0
test ebx, ebx
je 0x100b2c3b
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 0x100b2cae
cmp eax, esi
jbe 0x100b2d09
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 0x100f6580
push eax
call fcn.1002e4c0
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100069b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0x10
jb 0x100b2ca6
push dword [ebp - 0x40]
call edi
add esp, 4
mov eax, dword [ebp - 0x48]
inc esi
cmp eax, esi
ja 0x100b2c62
push 2
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x100f6588
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10001df0
mov edx, dword [ebp - 0x10c]
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x100b2ce3
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 0x100b2d14
xor ecx, ecx
jmp 0x100b2d2f
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 0x100b2d20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.10001df0
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 0x100b2d7c
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 0x100b2da7
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 0x100b2dc3
xor bl, bl
jmp 0x100b2de7
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 0x100b2df5
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 0x100b2e15
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 0x100b2e35
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 0x100b2e55
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.100dc8fb
mov esp, ebp
pop ebp
ret 0x18