Function at 0x415c60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [esp + 4], ebx
je 0x415f67
cmp byte [ebx + 0x41], 0
je 0x415f67
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x415ca9
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00419b4f
add esp, 0x28
ret
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
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
jae 0x415cd2
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 0x415dfd
test eax, eax
mov ebp, eax
je 0x415d14
cmp edx, 0x10
mov ecx, eax
jae 0x415cfb
lea ecx, [esp + 0x1c]
cmp ecx, ebp
ja 0x415d14
cmp edx, 0x10
mov ecx, eax
jae 0x415d0a
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jbe 0x415d21
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x415d4c
cmp edx, 0x10
mov ecx, eax
jae 0x415d35
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jb 0x415d4c
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
mov edi, dword [esp + 0x2c]
jb 0x415e06
test eax, eax
mov esi, eax
je 0x415d87
cmp edx, 0x10
mov ecx, eax
jae 0x415d6a
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x415d87
cmp edx, 0x10
mov ecx, eax
jae 0x415d79
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0x10]
jbe 0x415d94
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x415db5
cmp edx, 0x10
jae 0x415da6
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x415db5
call fcn.004196a6
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 0x415e0f
sub eax, 1
je 0x415e13
sub eax, 2
lea ecx, [esp + 0x18]
je 0x415f4d
call fcn.0040144f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00419b4f
add esp, 0x28
ret
lea ebp, [esp + 0x1c]
jmp 0x415cf0
lea esi, [esp + 0x1c]
jmp 0x415d5f
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x30]
cmp edx, 0x10
mov eax, dword [esp + 0x1c]
jb 0x415f2e
test eax, eax
mov esi, eax
je 0x415e4e
cmp edx, 0x10
mov ecx, eax
jae 0x415e35
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x415e4e
cmp edx, 0x10
mov ecx, eax
jae 0x415e44
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jbe 0x415e5b
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x415e86
cmp edx, 0x10
mov ecx, eax
jae 0x415e6f
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jb 0x415e86
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x415f0f
cmp edx, 0x10
jb 0x415f37
test eax, eax
mov esi, eax
je 0x415ec5
cmp edx, 0x10
mov ecx, eax
jae 0x415eac
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x415ec5
cmp edx, 0x10
mov ecx, eax
jae 0x415ebb
lea ecx, [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
add ecx, ebp
cmp esi, ecx
jbe 0x415ed2
call fcn.004196a6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x415ef3
cmp edx, 0x10
jae 0x415ee4
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x415ef3
call fcn.004196a6
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0041b622
add esp, 0x10
cmp edi, eax
jne 0x415f40
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x41], 0
je 0x415f49
test edi, edi
jne 0x415ce1
push edi
push 8
lea ecx, [esp + 0x20]
call fcn.00404888
jmp 0x415cd9
lea esi, [esp + 0x1c]
jmp 0x415e2a
lea esi, [esp + 0x1c]
jmp 0x415ea1
lea ecx, [esp + 0x18]
jmp 0x415de3
lea ecx, [esp + 0x18]
call fcn.0040144f
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00419b4f
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
mov al, 1
call fcn.00419b4f
add esp, 0x28
ret