Function at 0x40e280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x270]
push esi
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], esi
call fcn.00429750
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x40e2c8
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.00429770
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 0x467824
push edi
call fcn.00435aa3
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40e2fb
mov edx, dword [ebx + 0x270]
push edx
call fcn.00429770
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.004151e0
add esp, 8
cmp byte [ebx + 0x29e], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
je 0x40e33e
push str.hash
push str.shared
push str.location
push str.fileset
lea eax, [ebp - 0x334]
push str._s_t_s_t_s_t_s_r_n
push eax
call fcn.004350cb
add esp, 0x18
jmp 0x40e361
push str.shared
push str.location
push str.fileset
lea ecx, [ebp - 0x334]
push str._s_t_s_t_s_r_n
push ecx
call fcn.004350cb
add esp, 0x14
lea eax, [ebp - 0x334]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e370
sub eax, edx
mov edx, dword [ebp - 8]
push edx
mov esi, eax
push esi
lea eax, [ebp - 0x334]
push 1
push eax
call fcn.00437840
add esp, 0x10
cmp eax, esi
je 0x40e3cb
mov ecx, dword [ebp - 8]
push ecx
call fcn.00436199
push edi
call fcn.004387e5
mov edx, dword [ebx + 0x270]
push edx
call fcn.00429770
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a310
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.00437b02
mov eax, dword [ebx + 0x274]
push eax
call fcn.00429750
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x40e412
mov ecx, dword [ebx + 0x274]
push ecx
call fcn.00429770
mov edx, dword [ebx + 0x270]
push edx
call fcn.00429770
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 + 0x274]
mov esi, dword [eax + 0x194]
mov byte [ebp - 1], cl
movzx ecx, byte [eax + 0xe]
push edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x20], esi
call fcn.00429770
add esp, 4
test esi, esi
jne 0x40e464
cmp byte [ebp - 1], 0
je 0x40e464
mov eax, dword [ebx + 0x270]
push eax
call fcn.00429770
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.00403ee0
mov esi, eax
test esi, esi
je 0x40e72c
jmp 0x40e480
inc dword [ebp - 0x18]
push esi
mov ecx, ebx
call fcn.0040ca00
test al, al
jne 0x40e713
push 0x2e
push esi
call fcn.004343d0
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x40e4c1
test eax, eax
je 0x40e4c1
push str..inf
push eax
call fcn.0043643c
add esp, 8
test eax, eax
jne 0x40e4c1
mov edi, esi
jmp 0x40e4ce
push 0x5c
push esi
call fcn.00414130
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
push ecx
push edi
push edx
call fcn.0042ab40
add esp, 0xc
test al, al
jne 0x40e713
mov ecx, dword [ebx + 0x230]
call fcn.00403f30
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0042b340
add esp, 0x14
push esi
mov ecx, ebx
call fcn.0040d250
test eax, eax
je 0x40e52c
push 0x46cfe4
push eax
push edi
push str._s_t_s_t_s
lea eax, [ebp - 0x334]
push eax
jmp 0x40e611
cmp byte [ebp - 1], 0
je 0x40e5fe
movzx ecx, byte [ebp - 0xd]
push 0
push ecx
mov ecx, dword [ebx + 0x230]
push str.nocache
push esi
call fcn.004082d0
test eax, eax
jne 0x40e5fe
mov ecx, dword [ebx + 0x230]
push eax
push eax
push str.hash
push esi
call fcn.004081e0
push eax
push esi
mov ecx, ebx
call fcn.0040b110
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e713
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov dword [ebp - 0x24], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40e586
sub ecx, dword [ebp - 0x24]
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x40e59c
inc eax
test eax, eax
je 0x40e76d
push 0x46cfe8
push eax
push edi
lea eax, [ebp - 0x334]
push str._s_t_s_t_s
push eax
call fcn.004350cb
add esp, 0x14
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040b930
test al, al
jne 0x40e619
mov eax, dword [ebp - 8]
push eax
call fcn.00436199
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.00429770
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0042a310
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x46cfe4
push esi
push edi
push str._s_t_s_t_s
lea edx, [ebp - 0x334]
push edx
call fcn.004350cb
add esp, 0x14
cmp byte [ebx + 0x29e], 0
je 0x40e686
lea edi, [ebp - 0x334]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e630
mov ax, word [0x46ea84]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.004081e0
mov esi, eax
jmp 0x40e660
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e660
lea edi, [ebp - 0x334]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e670
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 - 0x334]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e690
mov cx, word [0x46ea88]
mov dl, byte [0x46ea8a]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x334]
push 0x4678a8
push eax
call fcn.00434790
add esp, 8
test eax, eax
je 0x40e6d8
push 0x4678a8
push eax
mov byte [eax], 0x5c
call fcn.00434790
add esp, 8
test eax, eax
jne 0x40e6c3
lea eax, [ebp - 0x334]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e6e1
mov edi, dword [ebp - 8]
sub eax, edx
push edi
mov esi, eax
push esi
lea ecx, [ebp - 0x334]
push 1
push ecx
call fcn.00437840
add esp, 0x10
push edi
cmp eax, esi
jne 0x40e7b1
call fcn.00437b02
add esp, 4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x230]
push edx
call fcn.00403ee0
mov esi, eax
test esi, esi
jne 0x40e480
mov edx, dword [ebp - 8]
push edx
call fcn.00436199
mov eax, dword [ebx + 0x270]
push eax
call fcn.00429770
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0042a310
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x40e7e6
push eax
mov ecx, ebx
call fcn.0040b2a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040b930
mov edx, dword [ebp - 8]
push edx
call fcn.00436199
mov eax, dword [ebp + 8]
push eax
call fcn.004387e5
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.00429770
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0042a310
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00436199
mov ecx, dword [ebp + 8]
push ecx
call fcn.004387e5
mov edx, dword [ebx + 0x270]
push edx
call fcn.00429770
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a310
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