Function at 0x100702d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10561040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov ecx, 0x108ce8bf
call fcn.10297320
nop
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jne 0x1007030f
mov dword [ebp - 0x54], 1
jmp 0x10070316
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x3d], cl
movzx edx, byte [ebp - 0x3d]
test edx, edx
je 0x10070378
mov dword [ebp - 0x98], 0xffffffff
mov eax, dword [ebp - 0x98]
cmp dword [ebp + 8], eax
je 0x10070341
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
jmp 0x1007036a
mov dword [ebp - 0xa0], 0xffffffff
cmp dword [ebp - 0xa0], 0
jne 0x1007035d
mov dword [ebp - 0x58], 1
jmp 0x10070364
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 0x100705f6
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 0x10070408
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 0x10070408
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 0x100705f6
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x4c], 0
jne 0x10070426
mov dword [ebp - 0x88], 0xffffffff
mov eax, dword [ebp - 0x88]
jmp 0x100705f6
mov ecx, dword [ebp - 0x38]
call fcn.10071850
nop
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x38], 0
jne 0x100704ab
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.ucrtbased.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x10070473
mov dword [ebp - 0x60], 1
jmp 0x1007047a
mov dword [ebp - 0x60], 0
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x46], al
movzx ecx, byte [ebp - 0x46]
test ecx, ecx
je 0x10070490
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
jmp 0x100704a3
mov dword [ebp - 0xa4], 0xffffffff
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
jmp 0x100705f6
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.MSVCP140D.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 0x10070512
cmp dword [ebp - 0x4c], 1
je 0x10070512
cmp dword [ebp - 0x4c], 3
je 0x1007057c
jmp 0x100705e6
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x50], eax
je 0x10070553
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.ucrtbased.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x50], eax
je 0x10070553
mov dword [ebp - 0x9c], 0xffffffff
mov eax, dword [ebp - 0x9c]
jmp 0x100705f6
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x34], ecx
je 0x1007056a
mov eax, dword [ebp + 8]
jmp 0x100705f6
mov dword [ebp - 0xb4], 0xffffffff
mov eax, dword [ebp - 0xb4]
jmp 0x100705f6
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.ucrtbased.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x100705b1
mov dword [ebp - 0x68], 1
jmp 0x100705b8
mov dword [ebp - 0x68], 0
mov cl, byte [ebp - 0x68]
mov byte [ebp - 0x45], cl
movzx edx, byte [ebp - 0x45]
test edx, edx
je 0x100705ce
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jmp 0x100705e1
mov dword [ebp - 0xac], 0xffffffff
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
jmp 0x100705f6
mov dword [ebp - 0xb0], 0xffffffff
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019a1c0
mov esp, ebp
pop ebp
ret 4