Function at 0x414330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5647c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5c5678]
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 0x4145d3
cmp byte [ecx + 0x41], 0
je 0x4145d3
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4145c6
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 0x4143ba
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 0x4144db
mov esi, eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x414405
mov ecx, eax
cmp edi, 0x10
jae 0x4143ec
lea ecx, [esp + 0x30]
cmp ecx, esi
ja 0x414405
mov ecx, eax
cmp edi, 0x10
jae 0x4143fb
lea ecx, [esp + 0x30]
mov edx, dword [esp + 0x40]
add ecx, edx
cmp esi, ecx
jbe 0x414416
call fcn.0053ecd6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
cmp ecx, 0xfffffffc
je 0x414441
mov ecx, eax
cmp edi, 0x10
jae 0x41442a
lea ecx, [esp + 0x30]
add ecx, edx
cmp esi, ecx
jb 0x414441
call fcn.0053ecd6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
mov ebx, edx
cmp edi, 0x10
jb 0x4144ea
mov esi, eax
test eax, eax
je 0x414472
mov ecx, eax
cmp edi, 0x10
jae 0x41445d
lea ecx, [esp + 0x30]
cmp ecx, esi
ja 0x414472
mov ecx, eax
cmp edi, 0x10
jae 0x41446c
lea ecx, [esp + 0x30]
add ecx, edx
cmp esi, ecx
jbe 0x414483
call fcn.0053ecd6
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
cmp ecx, 0xfffffffc
je 0x4144a0
cmp edi, 0x10
jae 0x414495
lea eax, [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x4144a0
call fcn.0053ecd6
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 0x4144f3
sub eax, 1
je 0x4144f7
sub eax, 2
lea ecx, [esp + 0x2c]
jne 0x4145c1
jmp 0x4145ce
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ecx
mov esi, ecx
jmp 0x4143e1
lea esi, [esp + 0x30]
jmp 0x414452
mov byte [edi + 0x41], 0
lea eax, [esp + 0x24]
push eax
lea edi, [esp + 0x30]
call fcn.0040f240
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x414536
test eax, eax
jne 0x414517
call fcn.0053ecd6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x414524
mov ecx, dword [eax + 4]
jmp 0x414527
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x414536
call fcn.0053ecd6
mov ebx, dword [esp + 0x18]
sub ebx, dword [esi + 4]
je 0x414599
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x30]
call fcn.0040f240
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xfffffffc
je 0x41457e
test eax, eax
jne 0x41455f
call fcn.0053ecd6
mov eax, dword [esi]
cmp dword [eax + 0x18], 0x10
jb 0x41456c
mov ecx, dword [eax + 4]
jmp 0x41456f
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
add edx, ecx
cmp dword [esi + 4], edx
jb 0x41457e
call fcn.0053ecd6
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.005408df
add esp, 0x10
cmp ebx, eax
jne 0x4145bd
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x41], 0
je 0x4145ca
test ebx, ebx
jne 0x4143c6
push ebx
lea eax, [ebx + 8]
lea edi, [esp + 0x30]
call fcn.004122e0
jmp 0x4143c6
lea ecx, [esp + 0x2c]
call fcn.00424920
xor al, al
jmp 0x4145d5
lea ecx, [esp + 0x2c]
call fcn.00424920
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.0053d78d
mov esp, ebp
pop ebp
ret