Function at 0x407d79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x55747c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x100
lea eax, [ebp - 0x108]
push esi
mov edi, edx
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x218], ebx
call fcn.004e8520
push ecx
push esi
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
push 0
lea edx, [ebp - 0x280]
call fcn.004041eb
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x40800f
push 0x2000
call fcn.004f014a
mov dword [ebp - 0x21c], eax
pop ecx
test eax, eax
jne 0x407df5
push 0xffffffffffffff98
pop eax
jmp 0x40800f
mov ah, byte [ebp - 0x108]
lea ecx, [ebp - 0x108]
mov al, ah
mov dword [ebp - 0x220], ecx
mov edx, ecx
test al, al
je 0x407e2d
cmp al, 0x2f
je 0x407e17
cmp al, 0x5c
jne 0x407e1a
lea ecx, [edx + 1]
inc edx
mov al, byte [edx]
test al, al
jne 0x407e0f
mov al, byte [ecx]
mov dword [ebp - 0x220], ecx
test al, al
jne 0x407e46
cmp dword [edi], 0
jne 0x408001
lea ecx, [ebp - 0x108]
call fcn.00407c35
jmp 0x408001
cmp dword [edi], 0
jne 0x407e53
lea ebx, [ebp - 0x108]
jmp 0x407e57
mov ebx, ecx
mov ah, al
test ah, ah
je 0x407e77
mov ecx, ebx
lea eax, [ebx + 1]
jmp 0x407e72
cmp byte [ecx], 0x2e
jne 0x407e6d
cmp byte [eax], 0x2e
cmove ebx, ecx
mov ecx, eax
lea eax, [ecx + 1]
cmp byte [eax], 0
jne 0x407e62
mov al, byte [ebx]
cmp al, 0x2f
je 0x407e81
cmp al, 0x2e
jne 0x407e84
inc ebx
jmp 0x407e77
push 0x105
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
push 0
push eax
call fcn.004e8520
add esp, 0xc
xor ecx, ecx
mov al, byte [ecx + 0x55c980]
mov byte [ebp + ecx - 0x210], al
inc ecx
test al, al
jne 0x407ea2
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x407eb8
lea edi, [ebp - 0x210]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ec8
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x218]
call fcn.0040485c
mov esi, eax
test esi, esi
jne 0x407ff6
lea eax, [ebp - 0x210]
push 0x533cec
push eax
call fcn.004ef7bb
pop ecx
pop ecx
test eax, eax
je 0x407f1a
push eax
call fcn.004ef848
pop ecx
cmp dword [ebp + 8], esi
je 0x407fe7
lea eax, [ebp - 0x210]
push 0x533cf4
push eax
call fcn.004ef7bb
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x407f83
mov eax, dword [ebp - 0x224]
cmp dword [eax], edi
jne 0x407fe7
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x108]
cmp esi, eax
je 0x407fe7
mov bl, byte [esi - 1]
mov ecx, dword [ebp - 0x214]
mov byte [esi - 1], 0
call fcn.00407cba
mov byte [esi - 1], bl
mov ebx, dword [ebp - 0x214]
push 0x533cf4
push ebx
call fcn.004ef7bb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x407fe7
mov edx, dword [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.00404a07
mov esi, eax
pop ecx
test esi, esi
js 0x407fb8
jle 0x407fb8
push edi
push 1
push esi
push dword [ebp - 0x21c]
call fcn.004efdf0
add esp, 0x10
cmp eax, 1
je 0x407f83
or esi, 0xffffffff
test edi, edi
je 0x407fc3
push edi
call fcn.004ef848
pop ecx
test esi, esi
jne 0x407ff6
mov edx, dword [ebp - 0x270]
lea esi, [ebp - 0x240]
sub esp, 0x18
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.00407bb3
add esp, 0x18
mov ecx, dword [ebp - 0x218]
call fcn.00404c94
mov esi, eax
jmp 0x408001
mov ecx, dword [ebp - 0x218]
call fcn.00404c94
push dword [ebp - 0x21c]
call fcn.004f0145
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d04d5
leave
ret