Function at 0x411720
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.0042bb30
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x411768
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042bb50
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 0x4718a4
push edi
call fcn.0043a181
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x41179b
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042bb50
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.00417590
add esp, 8
cmp byte [ebx + 0x2aa], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
je 0x4117de
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.00438a00
add esp, 0x18
jmp 0x411801
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.00438a00
add esp, 0x14
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411810
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.0043c240
add esp, 0x10
cmp eax, esi
je 0x41186b
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043a877
push edi
call fcn.0043cd35
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042bb50
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042e0d0
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.0043c502
mov eax, dword [ebx + 0x280]
push eax
call fcn.0042bb30
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x4118b2
mov ecx, dword [ebx + 0x280]
push ecx
call fcn.0042bb50
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042bb50
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.0042bb50
add esp, 4
test esi, esi
jne 0x411904
cmp byte [ebp - 1], 0
je 0x411904
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042bb50
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.00407df0
mov esi, eax
test esi, esi
je 0x411c2b
jmp 0x411920
inc dword [ebp - 0x24]
push esi
mov ecx, ebx
call fcn.0040fca0
test al, al
jne 0x411c12
push 0x2e
push esi
call fcn.00437970
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x411964
test eax, eax
je 0x411964
push str..inf
push eax
call fcn.0043ab1a
add esp, 8
test eax, eax
jne 0x411964
mov edi, esi
mov dword [ebp - 0x28], edi
jmp 0x411974
push 0x5c
push esi
call fcn.004164e0
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.0042e8f0
add esp, 0xc
test al, al
jne 0x411c12
mov ecx, dword [ebx + 0x230]
call fcn.00407e40
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042f0f0
add esp, 0x14
push esi
mov ecx, ebx
call fcn.004106b0
cmp byte [ebp - 1], 0
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x478120
je 0x4119e8
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 0x230]
push 0
push eax
push str.nocache
push esi
call fcn.0040b5b0
test eax, eax
je 0x4119ef
mov dword [ebp - 0x1c], 0x47811c
mov ecx, dword [ebx + 0x230]
push 0
push 0
push str.optional
push esi
call fcn.0040b5b0
test eax, eax
je 0x411a1e
push 0
push 0x476484
mov ecx, ebx
call fcn.0040eb70
mov dword [ebp - 0x18], eax
jmp 0x411aec
test edi, edi
je 0x411a3b
push 0
push edi
mov ecx, ebx
mov dword [ebp - 0x1c], 0x47811c
call fcn.0040eb70
mov dword [ebp - 0x18], eax
jmp 0x411aec
mov eax, dword [ebp - 0x1c]
mov edi, 0x47811c
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x411a63
test cl, cl
je 0x411a5f
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x411a63
add eax, 2
add edi, 2
test cl, cl
jne 0x411a43
xor eax, eax
jmp 0x411a68
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
jne 0x411a7b
push esi
mov ecx, ebx
call fcn.0040eb70
mov dword [ebp - 0x18], eax
jmp 0x411aec
mov ecx, dword [ebx + 0x230]
push 0
push str.hash
push esi
call fcn.0040b4c0
push eax
push esi
mov ecx, ebx
call fcn.0040e3b0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x411c12
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x411aa8
sub ecx, edi
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x411abd
inc eax
mov ecx, ebx
test eax, eax
je 0x411c9c
push 0
push eax
call fcn.0040eb70
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x478120
call fcn.0040ec40
test al, al
je 0x411c6c
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.00438a00
add esp, 0x14
cmp byte [ebx + 0x2aa], 0
je 0x411b76
lea edi, [ebp - 0x33c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411b20
mov ax, word [0x4767ec]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.0040b4c0
mov esi, eax
jmp 0x411b50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b50
lea edi, [ebp - 0x33c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411b60
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 0x411b80
mov cx, word [0x47654c]
mov dl, byte [0x47654e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040ec40
lea ecx, [ebp - 0x33c]
push 0x471928
push ecx
call fcn.00438bf0
add esp, 8
test eax, eax
je 0x411bd5
mov edi, edi
push 0x471928
push eax
mov byte [eax], 0x5c
call fcn.00438bf0
add esp, 8
test eax, eax
jne 0x411bc0
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411be0
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.0043c240
add esp, 0x10
push esi
cmp eax, edi
jne 0x411ca9
call fcn.0043c502
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x230]
push eax
call fcn.00407df0
mov esi, eax
test esi, esi
jne 0x411920
mov eax, dword [ebp - 8]
push eax
call fcn.0043a877
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042bb50
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042e0d0
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x411cde
push eax
mov ecx, ebx
call fcn.0040e540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043a877
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042bb50
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042e0d0
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.0040ec40
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043a877
mov edx, dword [ebp + 8]
push edx
call fcn.0043cd35
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042bb50
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042e0d0
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