Function at 0x40e1c0
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.00429580
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x40e208
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.004295a0
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.0043571a
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40e23b
mov edx, dword [ebx + 0x270]
push edx
call fcn.004295a0
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.00415120
add esp, 8
cmp byte [ebx + 0x29e], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
je 0x40e27e
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.00434d42
add esp, 0x18
jmp 0x40e2a1
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.00434d42
add esp, 0x14
lea eax, [ebp - 0x334]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e2b0
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.004374b0
add esp, 0x10
cmp eax, esi
je 0x40e30b
mov ecx, dword [ebp - 8]
push ecx
call fcn.00435e10
push edi
call fcn.00438455
mov edx, dword [ebx + 0x270]
push edx
call fcn.004295a0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a140
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.00437772
mov eax, dword [ebx + 0x274]
push eax
call fcn.00429580
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x40e352
mov ecx, dword [ebx + 0x274]
push ecx
call fcn.004295a0
mov edx, dword [ebx + 0x270]
push edx
call fcn.004295a0
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 + 0x190]
mov byte [ebp - 1], cl
movzx ecx, byte [eax + 0xe]
push edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 0x20], esi
call fcn.004295a0
add esp, 4
test esi, esi
jne 0x40e3a4
cmp byte [ebp - 1], 0
je 0x40e3a4
mov eax, dword [ebx + 0x270]
push eax
call fcn.004295a0
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.00403e20
mov esi, eax
test esi, esi
je 0x40e66c
jmp 0x40e3c0
inc dword [ebp - 0x18]
push esi
mov ecx, ebx
call fcn.0040c940
test al, al
jne 0x40e653
push 0x2e
push esi
call fcn.00434040
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x40e401
test eax, eax
je 0x40e401
push str..inf
push eax
call fcn.004360b3
add esp, 8
test eax, eax
jne 0x40e401
mov edi, esi
jmp 0x40e40e
push 0x5c
push esi
call fcn.00414070
add esp, 8
mov edi, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
push ecx
push edi
push edx
call fcn.0042a960
add esp, 0xc
test al, al
jne 0x40e653
mov ecx, dword [ebx + 0x230]
call fcn.00403e70
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0042b160
add esp, 0x14
push esi
mov ecx, ebx
call fcn.0040d190
test eax, eax
je 0x40e46c
push 0x46cfbc
push eax
push edi
push str._s_t_s_t_s
lea eax, [ebp - 0x334]
push eax
jmp 0x40e551
cmp byte [ebp - 1], 0
je 0x40e53e
movzx ecx, byte [ebp - 0xd]
push 0
push ecx
mov ecx, dword [ebx + 0x230]
push str.nocache
push esi
call fcn.00408210
test eax, eax
jne 0x40e53e
mov ecx, dword [ebx + 0x230]
push eax
push eax
push str.hash
push esi
call fcn.00408120
push eax
push esi
mov ecx, ebx
call fcn.0040b050
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e653
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + 1]
mov dword [ebp - 0x24], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40e4c6
sub ecx, dword [ebp - 0x24]
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x40e4dc
inc eax
test eax, eax
je 0x40e6ad
push 0x46cfc0
push eax
push edi
lea eax, [ebp - 0x334]
push str._s_t_s_t_s
push eax
call fcn.00434d42
add esp, 0x14
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040b870
test al, al
jne 0x40e559
mov eax, dword [ebp - 8]
push eax
call fcn.00435e10
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.004295a0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0042a140
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x46cfbc
push esi
push edi
push str._s_t_s_t_s
lea edx, [ebp - 0x334]
push edx
call fcn.00434d42
add esp, 0x14
cmp byte [ebx + 0x29e], 0
je 0x40e5c6
lea edi, [ebp - 0x334]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e570
mov ax, word [0x46eb1c]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.00408120
mov esi, eax
jmp 0x40e5a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e5a0
lea edi, [ebp - 0x334]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e5b0
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 0x40e5d0
mov cx, word [0x46eb20]
mov dl, byte [0x46eb22]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x334]
push 0x4678a8
push eax
call fcn.004342d0
add esp, 8
test eax, eax
je 0x40e618
push 0x4678a8
push eax
mov byte [eax], 0x5c
call fcn.004342d0
add esp, 8
test eax, eax
jne 0x40e603
lea eax, [ebp - 0x334]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e621
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.004374b0
add esp, 0x10
push edi
cmp eax, esi
jne 0x40e6f1
call fcn.00437772
add esp, 4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x230]
push edx
call fcn.00403e20
mov esi, eax
test esi, esi
jne 0x40e3c0
mov edx, dword [ebp - 8]
push edx
call fcn.00435e10
mov eax, dword [ebx + 0x270]
push eax
call fcn.004295a0
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0042a140
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x40e726
push eax
mov ecx, ebx
call fcn.0040b1e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0040b870
mov edx, dword [ebp - 8]
push edx
call fcn.00435e10
mov eax, dword [ebp + 8]
push eax
call fcn.00438455
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.004295a0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0042a140
add esp, 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00435e10
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438455
mov edx, dword [ebx + 0x270]
push edx
call fcn.004295a0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a140
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