Function at 0x415490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x56e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], eax
cmp dword [ebx + 0x38], eax
je 0x4156e2
cmp byte [ebx + 0x3d], al
je 0x4156e2
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4154f2
xor al, al
jmp 0x4156e4
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00410e50
lea eax, [ebx + 0x40]
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], eax
nop dword [eax + eax]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a20
mov edi, eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a20
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004168c0
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov ebx, eax
call fcn.004168c0
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x40]
push edx
lea edx, [edi + ebx]
push edx
mov ecx, dword [ecx + 0x38]
push eax
push dword [ebp - 0x50]
mov esi, dword [ecx]
call dword [esi + 0x20]
mov esi, eax
push 3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0048f0a0
lea ecx, [ebp - 0x60]
call fcn.00402690
lea ecx, [ebp - 0x14]
call fcn.0048f140
push 3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0048f0a0
lea ecx, [ebp - 0x6c]
call fcn.00402690
lea ecx, [ebp - 0x18]
call fcn.0048f140
sub esi, 0
je 0x4155ab
sub esi, 1
jne 0x415691
mov edi, dword [ebp - 0x4c]
jmp 0x4155b2
mov edi, dword [ebp - 0x4c]
mov byte [edi + 0x3d], 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a20
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.004168c0
mov esi, dword [ebp - 0x40]
sub esi, eax
push 3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call fcn.0048f0a0
lea ecx, [ebp - 0x78]
call fcn.00402690
lea ecx, [ebp - 0x1c]
call fcn.0048f140
test esi, esi
je 0x41562f
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a20
mov byte [ebp - 4], 0x10
mov ecx, eax
mov ebx, dword [ebp - 0x48]
or ebx, 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
call fcn.004168c0
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004b8380
add esp, 0x10
cmp esi, eax
je 0x415632
mov byte [ebp - 0x41], 1
jmp 0x415636
mov ebx, dword [ebp - 0x48]
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x41566d
and ebx, 0xfffffffe
mov dword [ebp - 0x48], ebx
push 3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x14
call fcn.0048f0a0
lea ecx, [ebp - 0x84]
call fcn.00402690
lea ecx, [ebp - 0x20]
call fcn.0048f140
mov byte [ebp - 4], 0
cmp byte [ebp - 0x41], 0
jne 0x41569a
cmp byte [edi + 0x3d], 0
je 0x415696
test esi, esi
jne 0x415510
push esi
push 8
lea ecx, [ebp - 0x3c]
call fcn.00410a70
jmp 0x415510
sub esi, 2
jne 0x41569a
mov bl, 1
jmp 0x41569c
xor bl, bl
mov dword [ebp - 4], 0x15
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x4156b8
inc eax
push eax
push dword [ebp - 0x38]
call fcn.00419260
add esp, 8
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x16
call fcn.00416a30
lea ecx, [ebp - 0x3c]
call fcn.00415cd0
mov al, bl
jmp 0x4156e4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048cd50
mov esp, ebp
pop ebp
ret