Function at 0x410ae0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov al, byte [esp + 0x34]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov ebx, ecx
push esi
push edi
mov edi, ebp
cmp byte [ebx + 0x4c], 0
mov dword [esp + 0x10], edi
je 0x410d67
mov cl, byte [ebp]
lea edx, [ebx + 0x4e]
movzx eax, al
shl eax, 6
add edx, eax
mov dword [esp + 0x18], edx
test cl, cl
je 0x410db6
jle 0x410d41
cmp cl, 0x40
jge 0x410d41
movzx eax, cl
cmp byte [eax + edx], 0
je 0x410d41
cmp ebp, edi
jae 0x410bfd
nop
mov esi, edi
mov eax, 0x7fffffff
sub esi, ebp
cmp esi, 0x7fffffff
cmova esi, eax
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x410b6c
push eax
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x410bf1
mov eax, dword [ebx + 0xec]
add eax, esi
cmp eax, dword [ebx + 0xe8]
jle 0x410bc7
lea edi, [eax + eax]
push edi
call fcn.00412c95
push dword [ebx + 0xec]
mov dword [esp + 0x1c], eax
push dword [ebx + 0xd0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebx + 0xd0]
lea ecx, [ebx + 0xd4]
add esp, 0x10
cmp edx, ecx
je 0x410bb7
push edx
call fcn.00412c90
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xe8], edi
mov eax, dword [ebx + 0xec]
mov edi, dword [ebx + 0xd0]
add edi, eax
add eax, esi
push esi
dec edi
mov dword [ebx + 0xec], eax
push ebp
push edi
call sub.VCRUNTIME140.dll_memcpy
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [esp + 0x10]
add ebp, esi
cmp ebp, edi
jb 0x410b40
mov cl, byte [edi]
cmp cl, 0x20
jge 0x410c78
movsx eax, cl
movzx eax, al
push eax
lea eax, [esp + 0x20]
push str.x_02X_
push eax
call fcn.0040ded0
lea edi, [esp + 0x28]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x410c22
mov eax, dword [ebx + 0x40]
sub edi, ecx
test eax, eax
je 0x410c4d
push eax
push edi
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edi, dword [esp + 0x20]
add esp, 0x10
jmp 0x410d3c
push edi
lea ecx, [ebx + 0xd0]
call fcn.004118d0
push edi
lea esi, [eax - 1]
lea eax, [esp + 0x20]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [esp + 0x10]
jmp 0x410d3c
xor esi, esi
mov eax, 0x416bb8
nop
cmp byte [eax], cl
je 0x410c94
add eax, 0xc
inc esi
cmp eax, 0x416bf4
jl 0x410c80
jmp 0x410d3c
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x410ca9
push eax
push 0x26
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
jmp 0x410cbc
push 1
lea ecx, [ebx + 0xd0]
call fcn.004118d0
mov word [eax - 1], 0x26
mov edx, dword [ebx + 0x40]
lea eax, [esi + esi*2]
mov ecx, dword [eax*4 + 0x416bb4]
mov eax, dword [eax*4 + 0x416bb0]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test edx, edx
je 0x410cec
push edx
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x410d14
push ecx
lea ecx, [ebx + 0xd0]
call fcn.004118d0
push dword [esp + 0x10]
push dword [esp + 0x18]
lea esi, [eax - 1]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x410d29
push eax
push 0x3b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
jmp 0x410d3c
push 1
lea ecx, [ebx + 0xd0]
call fcn.004118d0
mov word [eax - 1], 0x3b
mov edx, dword [esp + 0x18]
inc ebp
mov cl, byte [edi + 1]
inc edi
mov dword [esp + 0x10], edi
test cl, cl
jne 0x410b1b
cmp ebp, edi
jae 0x410db6
sub edi, ebp
mov eax, 0x7fffffff
cmp edi, 0x7fffffff
cmova edi, eax
jmp 0x410d79
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x410d70
sub edi, ecx
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x410d98
push eax
push edi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push edi
lea ecx, [ebx + 0xd0]
call fcn.004118d0
push edi
push ebp
lea esi, [eax - 1]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov byte [esi + edi], 0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8