Function at 0x101312f
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x102e2b9
call fcn.0102d2d6
xor eax, eax
lea edi, [ebp - 0xd]
stosb byte es:[edi], al
sub esp, 0x10
lea edi, [ebp - 0xe]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xd]
push eax
mov ebx, 0x1002d08
push ebx
mov dword [ebp - 4], 1
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x22f
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0xe]
push eax
mov esi, 0x1002b10
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.01011355
xor eax, eax
lea edi, [ebp - 0xf]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
stosb byte es:[edi], al
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xf]
push eax
push 0x1002cd4
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x18
xor eax, eax
push eax
push eax
push 2
push eax
push 3
push 0x40000000
lea ecx, [ebp + 8]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x101336e
xor eax, eax
lea edi, [ebp - 0xf]
stosb byte es:[edi], al
lea edi, [ebp - 0x10]
stosb byte es:[edi], al
push 0x1002cb8
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xf]
push eax
push 0x1002c84
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x23c
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x11]
push eax
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 3
call fcn.010111d2
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
test eax, eax
jg 0x1013271
mov dword [ebp - 0x18], eax
jmp 0x1013282
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x101336e
push 0x1002cb8
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c48
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x18
push dword [ebp - 0x20]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c18
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
mov esi, dword [ebp - 0x18]
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.01010552
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x11]
push eax
push 0x100246c
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x18
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp - 0x11]
push eax
push 0x10023d8
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x14
push 0x103138c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call sub.msvcrt.dll__CxxThrowException
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edi
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 7
call dword [sym.imp.msvcp60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::length_void_const]
push 0
lea ecx, [ebp - 0x28]
push ecx
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x18]
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10134ea
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
lea edi, [ebp - 0x10]
stosb byte es:[edi], al
push 0x1002b88
sub esp, 0x10
lea edi, [ebp - 0xf]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c84
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x10]
push eax
push ebx
mov byte [ebp - 4], 8
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push 0x245
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0xf]
push eax
push esi
mov byte [ebp - 4], 9
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 7
call fcn.010111d2
add esp, 0x3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, ebx
test ebx, ebx
jle 0x101342c
and esi, 0xffff
or esi, 0x80070000
test ebx, ebx
je 0x10134ea
push 0x1002b88
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c48
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x18
push ebx
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x11]
push eax
push 0x1002c18
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
xor eax, eax
add esp, 0x18
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.01010552
mov ecx, eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.msvcp60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push eax
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x11]
push eax
push 0x100246c
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
lea eax, [ebp - 0x60]
push eax
call fcn.010114c6
add esp, 0x18
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor eax, eax
sub esp, 0x10
lea edi, [ebp - 0x11]
stosb byte es:[edi], al
mov ecx, esp
mov dword [ebp - 0x2c], esp
jmp 0x1013342
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.01011422
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call dword [sym.imp.msvcp60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
call fcn.0102d387
ret 0x20