Function at 0x4349b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x51a0a0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp ebx, 0xffffffff
jne 0x4349e7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x434a12
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x434a12
lea eax, [edi - 1]
mov dword [edx], eax
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov byte [edx], bl
jmp 0x434b8f
cmp dword [esi + 0x4c], 0
jne 0x434a2f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x434a4d
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
cmp dword [esi + 0x38], 0
jne 0x434a80
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004d6ef1
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4
mov ecx, 0xf
mov byte [esp + 0x24], 0
xorps xmm0, xmm0
mov byte [esp + 0x13], bl
cmp ecx, 0x10
movq qword [esp + 0x24], xmm0
lea eax, [esp + 0x24]
mov dword [esp + 0x38], ecx
cmovae eax, dword [esp + 0x24]
mov dword [esp + 0x34], 8
mov byte [eax + 8], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
nop dword [eax + eax]
cmp edx, 0x10
lea eax, [esp + 0x24]
mov edx, dword [esi + 0x38]
lea edi, [esp + 0x24]
cmovae eax, ecx
cmovae edi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
je 0x434b1c
jmp 0x434ba5
lea eax, [esp + 0x13]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x434b4b
test edi, edi
jne 0x434ac0
cmp dword [esp + 0x34], 0x20
jae 0x434b0d
push edi
push 8
lea ecx, [esp + 0x2c]
call fcn.0041ca57
jmp 0x434ab3
or ebx, 0xffffffff
jmp 0x434b4b
cmp eax, 3
je 0x434b28
or ebx, 0xffffffff
jmp 0x434b43
lea eax, [esp + 0x13]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x17]
push eax
call fcn.004d6ef1
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jb 0x434b8f
lea eax, [edx + 1]
cmp eax, 0x1000
jb 0x434b86
test byte [esp + 0x24], 0x1f
jne 0x434c2b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x434c30
sub ecx, eax
cmp ecx, 4
jb 0x434c35
cmp ecx, 0x23
ja 0x434c3a
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov ecx, dword [esp + 0x3c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
mov ecx, edx
push eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [edx]
call dword [eax + 0x1c]
test eax, eax
js 0x434b17
cmp eax, 1
jg 0x434b12
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x24]
cmp edx, 0x10
mov edi, dword [esp + 0x18]
cmovae eax, ecx
sub edi, eax
je 0x434ae6
push dword [esi + 0x4c]
cmp edx, 0x10
lea eax, [esp + 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call fcn.004d77ca
mov edx, dword [esp + 0x48]
add esp, 0x10
mov ecx, dword [esp + 0x24]
cmp edi, eax
jne 0x434b0d
jmp 0x434ae6
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3