Function at 0x1036122
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x103ff95
call fcn.0103c428
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
lea esi, [edi + 0xe8]
mov ecx, esi
call fcn.0102995f
mov ecx, eax
call fcn.01027407
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.01029977
mov ecx, eax
call fcn.01015a98
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], ebx
push 0x1ffe
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x50], esi
cmp esi, ebx
je 0x10361e1
mov dword [ebp - 0x90], ebx
push dword [sym.imp.msvcrt.dll__iob]
push 0xffe
push esi
call dword [sym.imp.msvcrt.dll_fgetws]
add esp, 0xc
mov dword [ebp - 0x90], eax
cmp eax, ebx
jne 0x1036223
mov dword [ebp - 0x9c], esi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x50], ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push 0x10058bc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x10362aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
push 0x10425f0
lea eax, [ebp - 0x84]
jmp 0x1036760
push 0x1005b48
lea ecx, [ebp - 0x74]
call fcn.010076ce
mov edi, eax
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x64]
call fcn.01007727
mov byte [ebp - 4], 3
push edi
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, eax
call fcn.01008088
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x38]
call fcn.01008034
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
je 0x103626f
call fcn.01007c31
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
cmp ecx, ebx
je 0x1036282
call fcn.01007c31
mov dword [ebp - 0x64], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
cmp ecx, ebx
je 0x1036295
call fcn.01007c31
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0xbc], esi
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov edi, dword [ebp - 0x34]
jmp 0x103618f
lea eax, [ebp - 0x20]
push eax
push 0x1006e14
push 1
push ebx
push 0x1006df4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], ebx
jne 0x10362ce
cmp dword [ebp - 0x3c], ebx
je 0x1036333
lea ecx, [ebp - 0x54]
call sub.framedyn.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 5
push 0x1004a50
lea eax, [ebp - 0x54]
push eax
call sub.framedyn.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
pop ecx
pop ecx
push ebx
push ebx
push dword [ebp - 0x2c]
lea eax, [edi + 0xe8]
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push dword [ebp - 0x54]
call fcn.01007727
mov byte [ebp - 4], 6
mov esi, 0x1005a28
push esi
push 0x82a
push dword [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.010332a7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call sub.framedyn.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x1036338
mov esi, 0x1005a28
cmp dword [ebp - 0x28], ebx
jge 0x1036345
push dword [ebp - 0x28]
call fcn.0103c0cf
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x1036356
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
jmp 0x1036359
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x60]
push edx
push dword [ebp - 0x5c]
push eax
call dword [ecx + 0x104]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jl 0x103671c
cmp word [ebp - 0x60], bx
je 0x103671c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0xb4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], ebx
jne 0x103639e
cmp dword [ebp - 0x3c], ebx
je 0x10363d6
push ebx
push ebx
push dword [ebp - 0x2c]
add edi, 0xe8
push edi
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0xb4], esp
push 0x1004880
call fcn.01007727
mov byte [ebp - 4], 7
push esi
push 0x841
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.010332a7
cmp dword [ebp - 0x28], ebx
jge 0x10363e3
push dword [ebp - 0x28]
call fcn.0103c0cf
cmp dword [ebp - 0x1c], ebx
je 0x10366a6
push 0x1005b30
lea ecx, [ebp - 0x68]
call fcn.01007727
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 8
mov eax, dword [eax]
cmp eax, ebx
je 0x103640d
mov ecx, dword [eax]
jmp 0x103640f
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
lea edi, [ebp - 0x24]
push edi
push ecx
push eax
call dword [edx + 0xc8]
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x1036438
call fcn.01007c31
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x2c], ebx
jne 0x1036442
cmp dword [ebp - 0x3c], ebx
je 0x103647a
push ebx
push ebx
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, 0xe8
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0x98], esp
push 0x1005ac0
call fcn.01007727
mov byte [ebp - 4], 9
push esi
push 0x84d
push edi
mov byte [ebp - 4], 1
call fcn.010332a7
cmp edi, ebx
jge 0x1036484
push edi
call fcn.0103c0cf
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], ebx
jne 0x10364a3
cmp dword [ebp - 0x3c], ebx
je 0x10364db
push ebx
push ebx
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, 0xe8
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
push 0x10047cc
call fcn.01007727
mov byte [ebp - 4], 0xa
push esi
push 0x857
push edi
mov byte [ebp - 4], 1
call fcn.010332a7
cmp edi, ebx
jge 0x10364e5
push edi
call fcn.0103c0cf
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x70]
mov eax, dword [ebp - 0x24]
jge 0x1036689
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push dword [ebp - 0x4c]
push eax
call dword [ecx + 0x1c]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], ebx
jne 0x1036513
cmp dword [ebp - 0x3c], ebx
je 0x103654b
push ebx
push ebx
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, 0xe8
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x100478c
call fcn.01007727
mov byte [ebp - 4], 0xb
push esi
push 0x862
push edi
mov byte [ebp - 4], 1
call fcn.010332a7
cmp edi, ebx
jge 0x1036555
push edi
call fcn.0103c0cf
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x1036681
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x68]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], ebx
jne 0x1036579
cmp dword [ebp - 0x3c], ebx
je 0x10365b1
push ebx
push ebx
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
add eax, 0xe8
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x1004758
call fcn.01007727
mov byte [ebp - 4], 0xc
push esi
push 0x86e
push edi
mov byte [ebp - 4], 1
call fcn.010332a7
cmp edi, ebx
jge 0x10365bb
push edi
call fcn.0103c0cf
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.01007727
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x10365da
call fcn.010157e0
mov edi, eax
jmp 0x10365dc
xor edi, edi
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
call fcn.01007795
push eax
push edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x1036619
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x10425f0
lea eax, [ebp - 0x8c]
jmp 0x1036760
push ebx
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1005b48
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x103664d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
push 0x10425f0
lea eax, [ebp - 0x88]
jmp 0x1036760
cmp dword [ebp - 0x14], ebx
je 0x103665e
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x103666e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x1036681
call fcn.01007c31
mov dword [ebp - 0x48], ebx
inc dword [ebp - 0x4c]
jmp 0x10364e8
cmp eax, ebx
je 0x1036696
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x10366a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x10366b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 8], ebx
je 0x10366c4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x10366d2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [sym.imp.msvcrt.dll__iob]
push 0x1005138
push 0x1005aac
call dword [sym.imp.msvcrt.dll__wfreopen]
add esp, 0xc
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x1036704
call fcn.01007c31
mov dword [ebp - 0x38], ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0x38], ebx
je 0x103672d
mov ecx, dword [ebp - 0x38]
call fcn.010157e0
mov esi, eax
jmp 0x103672f
xor esi, esi
push ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x38]
call fcn.01007795
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10366b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
push 0x10425f0
lea eax, [ebp - 0x7c]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 0x20]
xor ebx, ebx
cmp eax, ebx
je 0x1036778
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1036788
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x1036798
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x10367a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x14], ebx
je 0x10367b9
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], ebx
je 0x10367c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x10367d5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
lea edi, [esi + 0xe8]
push dword [ebp - 0xb8]
mov ecx, edi
call fcn.01029957
mov ecx, eax
call fcn.01012dfe
mov dword [ebp - 0x44], ebx
push 1
push edi
lea ecx, [esi + 0x64]
call fcn.01026822
mov eax, 0x1036704
ret