Function at 0x100065b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10011380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jne 0x100065e4
mov dword [ebp - 0x54], 1
jmp 0x100065eb
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x3d], cl
movzx edx, byte [ebp - 0x3d]
test edx, edx
je 0x1000664d
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
cmp dword [ebp + 8], eax
je 0x10006616
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
jmp 0x1000663f
mov dword [ebp - 0xa0], 0xffffffff
cmp dword [ebp - 0xa0], 0
jne 0x10006632
mov dword [ebp - 0x58], 1
jmp 0x10006639
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
jmp 0x100068cb
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x100066dd
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x30]
mov edx, dword [edx]
add edx, dword [ecx]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x7c], eax
jae 0x100066dd
mov cl, byte [ebp + 8]
mov byte [ebp - 0x39], cl
mov dl, byte [ebp - 0x39]
mov byte [ebp - 0x3a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
mov al, byte [ebp - 0x3a]
mov byte [edx], al
mov eax, dword [ebp + 8]
jmp 0x100068cb
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x4c], 0
jne 0x100066fb
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x100068cb
mov ecx, dword [ebp - 0x38]
call fcn.10006cb0
nop
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x38], 0
jne 0x10006780
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x8c], ecx
mov dl, byte [ebp + 8]
mov byte [ebp - 0x3b], dl
mov al, byte [ebp - 0x3b]
mov byte [ebp - 0x3c], al
mov ecx, dword [ebp - 0x8c]
push ecx
movsx edx, byte [ebp - 0x3c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x10006748
mov dword [ebp - 0x60], 1
jmp 0x1000674f
mov dword [ebp - 0x60], 0
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x46], al
movzx ecx, byte [ebp - 0x46]
test ecx, ecx
je 0x10006765
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
jmp 0x10006778
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
jmp 0x100068cb
mov dword [ebp - 0xb8], 0x20
mov cl, byte [ebp + 8]
mov byte [ebp - 0x3e], cl
mov dl, byte [ebp - 0x3e]
mov byte [ebp - 0x2a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x94], ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x94]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x100067e7
cmp dword [ebp - 0x4c], 1
je 0x100067e7
cmp dword [ebp - 0x4c], 3
je 0x10006851
jmp 0x100068bb
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x50], eax
je 0x10006828
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x50], eax
je 0x10006828
mov dword [ebp - 0x9c], 0xffffffff
mov eax, dword [ebp - 0x9c]
jmp 0x100068cb
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x34], ecx
je 0x1000683f
mov eax, dword [ebp + 8]
jmp 0x100068cb
mov dword [ebp - 0xb4], 0xffffffff
mov eax, dword [ebp - 0xb4]
jmp 0x100068cb
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0xa8], eax
mov cl, byte [ebp - 0x2a]
mov byte [ebp - 0x44], cl
mov edx, dword [ebp - 0xa8]
push edx
movsx eax, byte [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x10006886
mov dword [ebp - 0x68], 1
jmp 0x1000688d
mov dword [ebp - 0x68], 0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x45], cl
movzx edx, byte [ebp - 0x45]
test edx, edx
je 0x100068a3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jmp 0x100068b6
mov dword [ebp - 0xac], 0xffffffff
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
jmp 0x100068cb
mov dword [ebp - 0xb0], 0xffffffff
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a4f0
mov esp, ebp
pop ebp
ret 4