Function at 0x10043270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 8]
jne 0x10043294
mov dword [ebp - 0x28], 1
jmp 0x1004329b
mov dword [ebp - 0x28], 0
mov cl, byte [ebp - 0x28]
mov byte [ebp - 9], cl
movzx edx, byte [ebp - 9]
test edx, edx
je 0x100432f1
mov dword [ebp - 0x40], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x40]
je 0x100432c0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
jmp 0x100432e3
mov dword [ebp - 0x44], 0xffffffff
cmp dword [ebp - 0x44], 0
jne 0x100432d6
mov dword [ebp - 0x2c], 1
jmp 0x100432dd
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x1004351d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x1004336f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
add eax, dword [edx]
cmp dword [ebp - 0x50], eax
jae 0x1004336f
mov cl, byte [ebp - 0x11]
mov byte [ebp - 5], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x54]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x1004351d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
jne 0x10043387
mov dword [ebp - 0x58], 0xffffffff
mov eax, dword [ebp - 0x58]
jmp 0x1004351d
mov ecx, dword [ebp - 4]
call fcn.10044140
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
jne 0x100433f9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x5c], eax
mov cl, byte [ebp - 0x12]
mov byte [ebp - 6], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 6], dl
mov eax, dword [ebp - 0x5c]
push eax
movsx ecx, byte [ebp - 6]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x100433cd
mov dword [ebp - 0x34], 1
jmp 0x100433d4
mov dword [ebp - 0x34], 0
movzx edx, byte [ebp - 0x34]
test edx, edx
je 0x100433e4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x100433f1
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x1004351d
mov dword [ebp - 0x80], 0x20
mov dl, byte [ebp + 8]
mov byte [ebp - 8], dl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 7]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x60]
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 - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10043457
cmp dword [ebp - 0x1c], 1
je 0x10043457
cmp dword [ebp - 0x1c], 3
je 0x100434b8
jmp 0x10043513
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0xa8]
sub eax, ecx
mov dword [ebp - 0x20], eax
je 0x10043498
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x20], eax
je 0x10043498
mov dword [ebp - 0x68], 0xffffffff
mov eax, dword [ebp - 0x68]
jmp 0x1004351d
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 8]
cmp dword [ebp - 0x6c], ecx
je 0x100434ac
mov eax, dword [ebp + 8]
jmp 0x1004351d
mov dword [ebp - 0x70], 0xffffffff
mov eax, dword [ebp - 0x70]
jmp 0x1004351d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x74], eax
mov cl, byte [ebp - 8]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x74]
push edx
movsx eax, byte [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x100434e7
mov dword [ebp - 0x38], 1
jmp 0x100434ee
mov dword [ebp - 0x38], 0
movzx ecx, byte [ebp - 0x38]
test ecx, ecx
je 0x100434fe
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
jmp 0x1004350e
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
jmp 0x1004351d
mov dword [ebp - 0x78], 0xffffffff
mov eax, dword [ebp - 0x78]
mov esp, ebp
pop ebp
ret 4