Function at 0x429d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ebc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5eae84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x429d8c
xor eax, eax
jmp 0x429f1c
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x429db7
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x429db7
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 0x429f1a
cmp dword [esi + 0x50], 0
jne 0x429dc5
or eax, 0xffffffff
jmp 0x429f1c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea eax, [esi + 0x44]
cmp ecx, eax
jne 0x429de1
mov eax, dword [esi + 0x3c]
push eax
push eax
push dword [esi + 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
cmp dword [esi + 0x40], 0
jne 0x429e06
push dword [esi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov eax, ecx
jmp 0x429f1c
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea esp, [esp]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x429eff
cmp eax, 1
jg 0x429ee0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub edi, eax
je 0x429eb6
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x429eff
lea eax, [ebp - 0x2c]
mov byte [esi + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x429f02
test edi, edi
jne 0x429e40
cmp dword [ebp - 0x18], 0x20
jae 0x429eff
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.00427f40
jmp 0x429e40
cmp eax, 3
jne 0x429eff
push dword [esi + 0x50]
push dword [ebp - 0x2c]
call fcn.004264d0
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, ebx
mov ebx, ecx
jmp 0x429f02
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x429f1a
push dword [ebp - 0x28]
call fcn.004257e0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d22e
mov esp, ebp
pop ebp
ret 4