Function at 0x40fc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x270]
push esi
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], esi
call fcn.0042a2b0
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x40fc48
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042a2d0
add esp, 4
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
push 0x46a844
push edi
call fcn.00437ee0
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40fc7b
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042a2d0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
call fcn.00415d10
add esp, 8
cmp byte [ebx + 0x2aa], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
je 0x40fcbe
push str.hash
push str.shared
push str.location
push str.fileset
lea eax, [ebp - 0x33c]
push str._s_t_s_t_s_t_s_r_n
push eax
call fcn.00436903
add esp, 0x18
jmp 0x40fce1
push str.shared
push str.location
push str.fileset
lea ecx, [ebp - 0x33c]
push str._s_t_s_t_s_r_n
push ecx
call fcn.00436903
add esp, 0x14
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fcf0
sub eax, edx
mov edx, dword [ebp - 8]
push edx
mov esi, eax
push esi
lea eax, [ebp - 0x33c]
push 1
push eax
call fcn.00439fa0
add esp, 0x10
cmp eax, esi
je 0x40fd4b
mov ecx, dword [ebp - 8]
push ecx
call fcn.004385d6
push edi
call fcn.0043af45
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042a2d0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042c850
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 8]
push edx
call fcn.0043a262
mov eax, dword [ebx + 0x280]
push eax
call fcn.0042a2b0
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x40fd92
mov ecx, dword [ebx + 0x280]
push ecx
call fcn.0042a2d0
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042a2d0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0x234]
mov cl, byte [eax + 0xb]
and cl, byte [eax + 0xa]
mov edx, dword [ebx + 0x280]
mov esi, dword [eax + 0x194]
mov byte [ebp - 1], cl
movzx ecx, byte [eax + 0xe]
push edx
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x30], esi
call fcn.0042a2d0
add esp, 4
test esi, esi
jne 0x40fde4
cmp byte [ebp - 1], 0
je 0x40fde4
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042a2d0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x230]
push 0
call fcn.004060b0
mov esi, eax
test esi, esi
je 0x41010b
jmp 0x40fe00
inc dword [ebp - 0x24]
push esi
mov ecx, ebx
call fcn.0040dfa0
test al, al
jne 0x4100f2
push 0x2e
push esi
call fcn.00436070
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x40fe44
test eax, eax
je 0x40fe44
push str..inf
push eax
call fcn.00438879
add esp, 8
test eax, eax
jne 0x40fe44
mov edi, esi
mov dword [ebp - 0x28], edi
jmp 0x40fe54
push 0x5c
push esi
call fcn.00414c60
add esp, 8
mov dword [ebp - 0x28], eax
mov edi, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push ecx
push edi
push edx
call fcn.0042d070
add esp, 0xc
test al, al
jne 0x4100f2
mov ecx, dword [ebx + 0x230]
call fcn.00406100
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042d870
add esp, 0x14
push esi
mov ecx, ebx
call fcn.0040eb70
cmp byte [ebp - 1], 0
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x4704f4
je 0x40fec8
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 0x230]
push 0
push eax
push str.nocache
push esi
call fcn.00409870
test eax, eax
je 0x40fecf
mov dword [ebp - 0x1c], 0x4704f0
mov ecx, dword [ebx + 0x230]
push 0
push 0
push str.optional
push esi
call fcn.00409870
test eax, eax
je 0x40fefe
push 0
push 0x46eaf4
mov ecx, ebx
call fcn.0040ce70
mov dword [ebp - 0x18], eax
jmp 0x40ffcc
test edi, edi
je 0x40ff1b
push 0
push edi
mov ecx, ebx
mov dword [ebp - 0x1c], 0x4704f0
call fcn.0040ce70
mov dword [ebp - 0x18], eax
jmp 0x40ffcc
mov eax, dword [ebp - 0x1c]
mov edi, 0x4704f0
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x40ff43
test cl, cl
je 0x40ff3f
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x40ff43
add eax, 2
add edi, 2
test cl, cl
jne 0x40ff23
xor eax, eax
jmp 0x40ff48
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
jne 0x40ff5b
push esi
mov ecx, ebx
call fcn.0040ce70
mov dword [ebp - 0x18], eax
jmp 0x40ffcc
mov ecx, dword [ebx + 0x230]
push 0
push str.hash
push esi
call fcn.00409780
push eax
push esi
mov ecx, ebx
call fcn.0040c6b0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4100f2
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ff88
sub ecx, edi
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x40ff9d
inc eax
mov ecx, ebx
test eax, eax
je 0x41017c
push 0
push eax
call fcn.0040ce70
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x4704f4
call fcn.0040cf40
test al, al
je 0x41014c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ecx
lea edx, [ebp - 0x33c]
push str._s_t_s_t_s
push edx
call fcn.00436903
add esp, 0x14
cmp byte [ebx + 0x2aa], 0
je 0x410056
lea edi, [ebp - 0x33c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410000
mov ax, word [0x46ec0c]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.00409780
mov esi, eax
jmp 0x410030
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410030
lea edi, [ebp - 0x33c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410040
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x33c]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410060
mov cx, word [0x46ec10]
mov dl, byte [0x46ec12]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040cf40
lea ecx, [ebp - 0x33c]
push 0x46a8c8
push ecx
call fcn.00436af0
add esp, 8
test eax, eax
je 0x4100b5
mov edi, edi
push 0x46a8c8
push eax
mov byte [eax], 0x5c
call fcn.00436af0
add esp, 8
test eax, eax
jne 0x4100a0
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4100c0
mov esi, dword [ebp - 8]
sub eax, edx
push esi
mov edi, eax
push edi
lea edx, [ebp - 0x33c]
push 1
push edx
call fcn.00439fa0
add esp, 0x10
push esi
cmp eax, edi
jne 0x410189
call fcn.0043a262
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x230]
push eax
call fcn.004060b0
mov esi, eax
test esi, esi
jne 0x40fe00
mov eax, dword [ebp - 8]
push eax
call fcn.004385d6
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042a2d0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042c850
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x4101be
push eax
mov ecx, ebx
call fcn.0040c840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.004385d6
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042a2d0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042c850
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x20]
push eax
call fcn.0040cf40
mov ecx, dword [ebp - 8]
push ecx
call fcn.004385d6
mov edx, dword [ebp + 8]
push edx
call fcn.0043af45
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042a2d0
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042c850
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8