Function at 0x413550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x563008
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
cmp dword [ecx + 0x3c], 0
mov dword [esp + 0x14], ecx
je 0x4137f3
cmp byte [ecx + 0x41], 0
je 0x4137f3
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4137e6
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 8
cmp ecx, 0x10
jae 0x4135da
lea eax, [esp + 0x30]
mov byte [eax + 8], 0
mov dword [esp + 0x58], 0
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
cmp edi, 0x10
jb 0x4136fb
mov esi, eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x413625
mov ecx, eax
cmp edi, 0x10
jae 0x41360c
lea ecx, [esp + 0x30]
cmp ecx, esi
ja 0x413625
mov ecx, eax
cmp edi, 0x10
jae 0x41361b
lea ecx, [esp + 0x30]
mov edx, dword [esp + 0x40]
add ecx, edx
cmp esi, ecx
jbe 0x413636
call fcn.0053d6a6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
cmp ecx, 0xfffffffc
je 0x413661
mov ecx, eax
cmp edi, 0x10
jae 0x41364a
lea ecx, [esp + 0x30]
add ecx, edx
cmp esi, ecx
jb 0x413661
call fcn.0053d6a6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ebx, edx
cmp edi, 0x10
jb 0x41370a
mov esi, eax
test eax, eax
je 0x413692
mov ecx, eax
cmp edi, 0x10
jae 0x41367d
lea ecx, [esp + 0x30]
cmp ecx, esi
ja 0x413692
mov ecx, eax
cmp edi, 0x10
jae 0x41368c
lea ecx, [esp + 0x30]
add ecx, edx
cmp esi, ecx
jbe 0x4136a3
call fcn.0053d6a6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
cmp ecx, 0xfffffffc
je 0x4136c0
cmp edi, 0x10
jae 0x4136b5
lea eax, [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x4136c0
call fcn.0053d6a6
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x44]
push eax
call edx
sub eax, 0
je 0x413713
sub eax, 1
je 0x413717
sub eax, 2
lea ecx, [esp + 0x2c]
jne 0x4137e1
jmp 0x4137ee
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ecx
mov esi, ecx
jmp 0x413601
lea esi, [esp + 0x30]
jmp 0x413672
mov byte [edi + 0x41], 0
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x30]
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x413756
test eax, eax
jne 0x413737
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x413744
mov ecx, dword [eax + 4]
jmp 0x413747
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x413756
call fcn.0053d6a6
mov ebx, dword [esp + 0x18]
sub ebx, dword [esi + 4]
je 0x4137b9
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x30]
call fcn.0040e990
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x41379e
test eax, eax
jne 0x41377f
call fcn.0053d6a6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x41378c
mov ecx, dword [eax + 4]
jmp 0x41378f
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x41379e
call fcn.0053d6a6
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x4c]
mov esi, dword [esi + 4]
push ecx
push ebx
push 1
push esi
call fcn.0053f2af
add esp, 0x10
cmp ebx, eax
jne 0x4137dd
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x41], 0
je 0x4137ea
test ebx, ebx
jne 0x4135e6
push ebx
lea eax, [ebx + 8]
lea edi, [esp + 0x30]
call fcn.00411850
jmp 0x4135e6
lea ecx, [esp + 0x2c]
call fcn.004231c0
xor al, al
jmp 0x4137f5
lea ecx, [esp + 0x2c]
call fcn.004231c0
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret