Function at 0x424780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x451390]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [esp + 4], ebx
je 0x424a87
cmp byte [ebx + 0x41], 0
je 0x424a87
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x4247c9
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004260d4
add esp, 0x28
ret
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 8
cmp ecx, 0x10
jae 0x4247f2
lea eax, [esp + 0x10]
push ebp
push esi
mov byte [eax + 8], 0
push edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x42491d
mov ebp, eax
test eax, eax
je 0x424834
mov ecx, eax
cmp edx, 0x10
jae 0x42481b
lea ecx, [esp + 0x1c]
cmp ecx, ebp
ja 0x424834
mov ecx, eax
cmp edx, 0x10
jae 0x42482a
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jbe 0x424841
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x42486c
mov ecx, eax
cmp edx, 0x10
jae 0x424855
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jb 0x42486c
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x424926
mov esi, eax
test eax, eax
je 0x4248a7
mov ecx, eax
cmp edx, 0x10
jae 0x42488a
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x4248a7
mov ecx, eax
cmp edx, 0x10
jae 0x424899
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, ebx
mov ebx, dword [esp + 0x10]
cmp esi, ecx
jbe 0x4248b4
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x4248d5
cmp edx, 0x10
jae 0x4248c6
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x4248d5
call fcn.0042657a
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
add ebp, edi
push ebp
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x42492f
sub eax, 1
je 0x424933
sub eax, 2
lea ecx, [esp + 0x18]
je 0x424a6d
call fcn.00401b00
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004260d4
add esp, 0x28
ret
lea ebp, [esp + 0x1c]
jmp 0x424810
lea esi, [esp + 0x1c]
jmp 0x42487f
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
jb 0x424a4e
mov esi, eax
test eax, eax
je 0x42496e
mov ecx, eax
cmp edx, 0x10
jae 0x424955
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x42496e
mov ecx, eax
cmp edx, 0x10
jae 0x424964
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jbe 0x42497b
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x4249a6
mov ecx, eax
cmp edx, 0x10
jae 0x42498f
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jb 0x4249a6
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x424a2f
cmp edx, 0x10
jb 0x424a57
mov esi, eax
test eax, eax
je 0x4249e5
mov ecx, eax
cmp edx, 0x10
jae 0x4249cc
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x4249e5
mov ecx, eax
cmp edx, 0x10
jae 0x4249db
lea ecx, [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
add ecx, ebp
cmp esi, ecx
jbe 0x4249f2
call fcn.0042657a
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x424a13
cmp edx, 0x10
jae 0x424a04
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x424a13
call fcn.0042657a
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0042a6b2
add esp, 0x10
cmp edi, eax
jne 0x424a60
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x41], 0
je 0x424a69
test edi, edi
jne 0x424801
push edi
push 8
lea ecx, [esp + 0x20]
call fcn.00404be0
jmp 0x4247f9
lea esi, [esp + 0x1c]
jmp 0x42494a
lea esi, [esp + 0x1c]
jmp 0x4249c1
lea ecx, [esp + 0x18]
jmp 0x424903
lea ecx, [esp + 0x18]
call fcn.00401b00
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004260d4
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
mov al, 1
call fcn.004260d4
add esp, 0x28
ret