Function at 0x410350
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.0042abc0
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x410398
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042abe0
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 0x469844
push edi
call fcn.00438800
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x4103cb
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042abe0
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.00416620
add esp, 8
cmp byte [ebx + 0x2aa], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
je 0x41040e
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.00437223
add esp, 0x18
jmp 0x410431
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.00437223
add esp, 0x14
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410440
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.0043a5a0
add esp, 0x10
cmp eax, esi
je 0x41049b
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438ef6
push edi
call fcn.0043b545
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042abe0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042d160
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.0043a862
mov eax, dword [ebx + 0x280]
push eax
call fcn.0042abc0
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x4104e2
mov ecx, dword [ebx + 0x280]
push ecx
call fcn.0042abe0
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042abe0
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.0042abe0
add esp, 4
test esi, esi
jne 0x410534
cmp byte [ebp - 1], 0
je 0x410534
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042abe0
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.00405d90
mov esi, eax
test esi, esi
je 0x41085b
jmp 0x410550
inc dword [ebp - 0x24]
push esi
mov ecx, ebx
call fcn.0040e8b0
test al, al
jne 0x410842
push 0x2e
push esi
call fcn.00436990
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x410594
test eax, eax
je 0x410594
push str..inf
push eax
call fcn.00439199
add esp, 8
test eax, eax
jne 0x410594
mov edi, esi
mov dword [ebp - 0x28], edi
jmp 0x4105a4
push 0x5c
push esi
call fcn.00415570
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.0042d990
add esp, 0xc
test al, al
jne 0x410842
mov ecx, dword [ebx + 0x230]
call fcn.00405de0
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042e190
add esp, 0x14
push esi
mov ecx, ebx
call fcn.0040f2c0
cmp byte [ebp - 1], 0
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x46f444
je 0x410618
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 0x230]
push 0
push eax
push str.nocache
push esi
call fcn.0040a180
test eax, eax
je 0x41061f
mov dword [ebp - 0x1c], 0x46f440
mov ecx, dword [ebx + 0x230]
push 0
push 0
push str.optional
push esi
call fcn.0040a180
test eax, eax
je 0x41064e
push 0
push 0x46daf4
mov ecx, ebx
call fcn.0040d780
mov dword [ebp - 0x18], eax
jmp 0x41071c
test edi, edi
je 0x41066b
push 0
push edi
mov ecx, ebx
mov dword [ebp - 0x1c], 0x46f440
call fcn.0040d780
mov dword [ebp - 0x18], eax
jmp 0x41071c
mov eax, dword [ebp - 0x1c]
mov edi, 0x46f440
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x410693
test cl, cl
je 0x41068f
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x410693
add eax, 2
add edi, 2
test cl, cl
jne 0x410673
xor eax, eax
jmp 0x410698
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
jne 0x4106ab
push esi
mov ecx, ebx
call fcn.0040d780
mov dword [ebp - 0x18], eax
jmp 0x41071c
mov ecx, dword [ebx + 0x230]
push 0
push str.hash
push esi
call fcn.0040a090
push eax
push esi
mov ecx, ebx
call fcn.0040cfc0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x410842
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4106d8
sub ecx, edi
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x4106ed
inc eax
mov ecx, ebx
test eax, eax
je 0x4108cc
push 0
push eax
call fcn.0040d780
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x46f444
call fcn.0040d7e0
test al, al
je 0x41089c
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.00437223
add esp, 0x14
cmp byte [ebx + 0x2aa], 0
je 0x4107a6
lea edi, [ebp - 0x33c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410750
mov ax, word [0x46dc0c]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.0040a090
mov esi, eax
jmp 0x410780
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410780
lea edi, [ebp - 0x33c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410790
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 0x4107b0
mov cx, word [0x46dc10]
mov dl, byte [0x46dc12]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040d7e0
lea ecx, [ebp - 0x33c]
push 0x4698c8
push ecx
call fcn.00437410
add esp, 8
test eax, eax
je 0x410805
mov edi, edi
push 0x4698c8
push eax
mov byte [eax], 0x5c
call fcn.00437410
add esp, 8
test eax, eax
jne 0x4107f0
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410810
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.0043a5a0
add esp, 0x10
push esi
cmp eax, edi
jne 0x4108d9
call fcn.0043a862
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x230]
push eax
call fcn.00405d90
mov esi, eax
test esi, esi
jne 0x410550
mov eax, dword [ebp - 8]
push eax
call fcn.00438ef6
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042abe0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042d160
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x41090e
push eax
mov ecx, ebx
call fcn.0040d150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438ef6
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042abe0
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042d160
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.0040d7e0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438ef6
mov edx, dword [ebp + 8]
push edx
call fcn.0043b545
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042abe0
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042d160
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