Function at 0x417d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489e28
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4c9080]
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 dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov ecx, 7
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], ecx
mov esi, dword [edi + 0x10]
inc esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
cmp esi, ecx
je 0x417e23
cmp esi, 0x7ffffffe
jbe 0x417dde
push str.string_too_long
call fcn.00439ca9
cmp esi, ecx
jbe 0x417df2
push 0
push esi
lea ecx, [ebp - 0x58]
call fcn.0040d7e7
mov ecx, dword [ebp - 0x44]
jmp 0x417e09
cmp esi, 8
jae 0x417dfc
mov dword [ebp - 0x44], ecx
jmp 0x417e00
test esi, esi
jne 0x417e0d
mov dword [ebp - 0x48], eax
xor eax, eax
mov word [ebp - 0x58], ax
test esi, esi
je 0x417e23
cmp ecx, 8
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x58]
call fcn.0040d569
push 1
push 0x4b86c8
lea ecx, [ebp - 0x58]
call fcn.0040d4c5
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040d569
mov esi, eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x417e94
mov eax, dword [esi + 0x10]
add eax, 1
je 0x417e9f
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0043bd70
add esp, 0xc
jmp 0x417e9f
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x417ec1
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x417f23
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x417ee2
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x417f1a
test byte [ebp - 0x40], 0x1f
je 0x417ef6
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x417f02
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x417f0e
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x417f18
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
push eax
call fcn.0040c95c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x417fa0
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x417f5f
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x417f97
test byte [ebp - 0x28], 0x1f
je 0x417f73
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x417f7f
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x417f8b
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x417f95
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x418010
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x7fffffff
jbe 0x417fcf
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418007
test byte [ebp - 0x58], 0x1f
je 0x417fe3
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x417fef
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x417ffb
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x418005
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
push 0xffffffffffffffff
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
call fcn.0040c8c7
mov byte [ebp - 4], 3
mov edx, 7
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0x30]
add esi, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edx
je 0x4180ce
cmp esi, 0x7ffffffe
jbe 0x418089
push str.string_too_long
call fcn.00439ca9
cmp esi, edx
jbe 0x41809d
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d7e7
mov edx, dword [ebp - 0x14]
jmp 0x4180b4
cmp esi, 8
jae 0x4180a7
mov dword [ebp - 0x14], edx
jmp 0x4180ab
test esi, esi
jne 0x4180b8
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp - 0x28], ax
test esi, esi
je 0x4180ce
cmp edx, 8
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d569
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d569
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x41814b
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x41810a
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418142
test byte [ebp - 0x40], 0x1f
je 0x41811e
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41812a
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x418136
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x418140
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
push eax
call fcn.0040c95c
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4181c8
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x418187
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4181bf
test byte [ebp - 0x28], 0x1f
je 0x41819b
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4181a7
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x4181b3
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4181bd
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp byte [ebp + 0x14], al
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
jne 0x41820c
cmp dword [ebp - 0x2c], 8
push 0x4b836c
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0044659a
add esp, 8
test eax, eax
je 0x418209
push eax
call fcn.004467b3
add esp, 4
jmp 0x41824a
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0x4b835c
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0044659a
mov esi, eax
add esp, 8
test esi, esi
jne 0x41822d
or esi, 0xffffffff
jmp 0x41824f
mov eax, dword [ebp - 0x78]
push esi
push 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
call fcn.00449e8a
push esi
call fcn.004467b3
add esp, 0x14
mov esi, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4182ac
mov ecx, dword [ebp - 0x70]
inc eax
cmp eax, 0x7fffffff
jbe 0x41826b
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4182a3
test byte [ebp - 0x70], 0x1f
je 0x41827f
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41828b
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x418297
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4182a1
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x418320
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4182df
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418317
test byte [ebp - 0x40], 0x1f
je 0x4182f3
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4182ff
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x41830b
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x418315
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, esi
mov dword [ebp - 0x30], 0
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.0043b37f
mov esp, ebp
pop ebp
ret 0x10