Function at 0x42be00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x432968
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5274d0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5274d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x4c]
cmp ebx, 0xffffffff
jne 0x42be44
xor eax, eax
jmp 0x42bfec
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x42be6f
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42be6f
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 0x42bfea
cmp dword [esi + 0x50], 0
jne 0x42be7d
or eax, 0xffffffff
jmp 0x42bfec
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea eax, [esi + 0x44]
cmp ecx, eax
jne 0x42be99
push dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov ecx, esi
push eax
push eax
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
cmp dword [esi + 0x40], 0
jne 0x42bebe
push dword [esi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR120.dll_fputc]
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, ebx
mov eax, ecx
jmp 0x42bfec
mov ecx, 0xf
mov byte [esp + 0x20], 0
xorps xmm0, xmm0
mov byte [esp + 0x14], bl
cmp ecx, 0x10
movq qword [esp + 0x20], xmm0
lea eax, [esp + 0x20]
mov dword [esp + 0x34], ecx
cmovae eax, dword [esp + 0x20]
mov dword [esp + 0x30], 8
mov byte [eax + 8], 0
mov dword [esp + 0x44], 0
lea edi, [esi + 0x48]
lea esp, [esp]
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x25]
push eax
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.MSVCP120.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 0x42bfd4
cmp eax, 1
jg 0x42bfb4
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x20]
cmp ebp, 0x10
mov edi, dword [esp + 0x18]
cmovae eax, ecx
sub edi, eax
je 0x42bf82
push dword [esi + 0x50]
cmp ebp, 0x10
lea eax, [esp + 0x24]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x42bfd4
lea eax, [esp + 0x14]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x42bfd7
test edi, edi
lea edi, [esi + 0x48]
jne 0x42bf00
cmp dword [esp + 0x30], 0x20
jae 0x42bfd4
push 0
push 8
lea ecx, [esp + 0x28]
call fcn.0042bb90
jmp 0x42bef9
cmp eax, 3
jne 0x42bfd4
push dword [esi + 0x50]
push dword [esp + 0x18]
call fcn.0042b550
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, ebx
mov ebx, ecx
jmp 0x42bfd7
or ebx, 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x42bfea
push dword [esp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00431a84
add esp, 0x34
ret 4