Function at 0x10052440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x102ff008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov ecx, 0x103822dc
call fcn.102317b0
mov dword [ebp - 0x8c], 0xffffffff
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp + 8]
jne 0x1005247e
mov dword [ebp - 0x58], 1
jmp 0x10052485
mov dword [ebp - 0x58], 0
mov cl, byte [ebp - 0x58]
mov byte [ebp - 0x3b], cl
movzx edx, byte [ebp - 0x3b]
test edx, edx
je 0x100524e1
mov dword [ebp - 0xa0], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xa0]
je 0x100524b0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
jmp 0x100524d3
mov dword [ebp - 0x6c], 0xffffffff
cmp dword [ebp - 0x6c], 0
jne 0x100524c6
mov dword [ebp - 0x5c], 1
jmp 0x100524cd
mov dword [ebp - 0x5c], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
jmp 0x1005272e
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 0x1005255f
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x20]
mov eax, dword [ecx]
add eax, dword [edx]
cmp dword [ebp - 0x78], eax
jae 0x1005255f
mov cl, byte [ebp - 0x41]
mov byte [ebp - 0x3a], cl
mov dl, byte [ebp + 8]
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 - 0x7c], 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 - 0x7c]
mov dl, byte [ebp - 0x3a]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
jmp 0x1005272e
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x10052577
mov dword [ebp - 0x80], 0xffffffff
mov eax, dword [ebp - 0x80]
jmp 0x1005272e
mov ecx, dword [ebp - 0x38]
call fcn.10053600
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x100525f2
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x84], eax
mov cl, byte [ebp - 0x42]
mov byte [ebp - 0x39], cl
mov dl, byte [ebp + 8]
mov byte [ebp - 0x39], dl
mov eax, dword [ebp - 0x84]
push eax
movsx ecx, byte [ebp - 0x39]
push ecx
call dword [sym.imp.ucrtbased.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x100525c3
mov dword [ebp - 0x64], 1
jmp 0x100525ca
mov dword [ebp - 0x64], 0
movzx edx, byte [ebp - 0x64]
test edx, edx
je 0x100525da
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
jmp 0x100525ea
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x48]
jmp 0x1005272e
mov dword [ebp - 0xa8], 0x20
mov dl, byte [ebp + 8]
mov byte [ebp - 0x2a], dl
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x88], 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 - 0x88]
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 0x10052653
cmp dword [ebp - 0x4c], 1
je 0x10052653
cmp dword [ebp - 0x4c], 3
je 0x100526bd
jmp 0x1005271e
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x50], eax
je 0x10052694
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 0x10052694
mov dword [ebp - 0x90], 0xffffffff
mov eax, dword [ebp - 0x90]
jmp 0x1005272e
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x34], ecx
je 0x100526ab
mov eax, dword [ebp + 8]
jmp 0x1005272e
mov dword [ebp - 0x94], 0xffffffff
mov eax, dword [ebp - 0x94]
jmp 0x1005272e
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x98], eax
mov cl, byte [ebp - 0x2a]
mov byte [ebp - 0x40], cl
mov edx, dword [ebp - 0x98]
push edx
movsx eax, byte [ebp - 0x40]
push eax
call dword [sym.imp.ucrtbased.dll_fputc]
add esp, 8
cmp eax, 0xffffffff
je 0x100526f2
mov dword [ebp - 0x68], 1
jmp 0x100526f9
mov dword [ebp - 0x68], 0
movzx ecx, byte [ebp - 0x68]
test ecx, ecx
je 0x10052709
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
jmp 0x10052719
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x54], 0xffffffff
mov eax, dword [ebp - 0x54]
jmp 0x1005272e
mov dword [ebp - 0x9c], 0xffffffff
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10169cb0
mov esp, ebp
pop ebp
ret 4