Function at 0x40c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x42c
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, dword [ecx + 8]
or edi, ebx
js 0x40c3a3
lea edi, [eax + ebx]
cmp edx, edi
jb 0x40c3a3
mov dword [esp + 8], 0
mov edx, dword [ecx + 0xc]
mov dword [esp], esi
add eax, edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea esi, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.invalid_parameters__offset_d__size_d__obj_size_d_
mov dword [esp], esi
call fcn.00471a30
mov dword [esp], 0x30
call fcn.004800b0
xor edi, edi
mov ebx, eax
lea eax, [eax + 8]
mov ecx, ebx
mov dword [ebx], eax
lea eax, [ebx + 0x20]
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 4], edi
mov byte [ebx + 8], 0
mov byte [ebx + 0x20], 0
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], str.obj_node_t
mov dword [esp + 4], eax
mov dword [esp], eax
lea edi, [ebx + 0x18]
call fcn.0047bd90
sub esp, 0x10
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov ecx, edi
call fcn.0047bd90
sub esp, 0x10
mov dword [esp + 8], 0x4736c0
mov dword [esp + 4], 0x495520
mov dword [esp], ebx
call fcn.00480640
mov esi, eax
jmp 0x481260
mov ecx, edi
call fcn.0047bd60
mov ecx, ebx
call fcn.0047bd60
mov dword [esp], ebx
call fcn.00480330
mov dword [esp], esi
call fcn.00462b50
nop
nop
mov ecx, edi
call fcn.0047bd60
mov dword [esp], ebx
call fcn.00462b50
nop
lea ecx, [esp + 0x38]
call fcn.0047bd60
mov dword [esp], ebx
call fcn.00462b50
nop
nop
nop
mov dword [esp + 4], esi
mov dword [esp], 0x1c
call fcn.0041c410
lea ecx, [ebp - 0x58]
call fcn.0047bd60
mov edi, dword [ebp - 0x78]
test edi, edi
je 0x481354
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov dword [ebp - 0x8c], eax
test esi, esi
je 0x48138e
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x90], eax
lea eax, [esi + 0xc]
cmp edx, eax
je 0x4812fc
mov eax, dword [esi + 0xc]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov dword [esp + 4], esi
mov dword [esp], 0x1c
call fcn.0041c410
mov esi, dword [ebp - 0x90]
jmp 0x4812d2
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x4813a9
mov edx, dword [esi + 4]
lea eax, [esi + 0xc]
mov edi, dword [esi]
cmp edx, eax
je 0x48137a
mov eax, dword [esi + 0xc]
mov dword [esp], edx
inc eax
mov dword [esp + 4], eax
call fcn.00480000
mov dword [esp + 4], esi
mov dword [esp], 0x1c
call fcn.0041c410
mov esi, edi
jmp 0x48135a
mov dword [esp + 4], edi
mov dword [esp], 0x10
call fcn.0041c410
mov edi, dword [ebp - 0x8c]
jmp 0x4812bf
mov dword [esp], ebx
call fcn.00462b50
nop
nop
nop
mov dword [esp + 4], ebx
mov dword [esp], 0x1c
call fcn.0041c410
lea ecx, [ebp - 0x70]
call fcn.0047bd60
mov dword [esp], esi
call fcn.00462b50
mov dword [esp + 4], ebx
mov dword [esp], 0x1c
call fcn.0041c410
jmp 0x4813c4