Function at 0x410310
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.0042ab50
add esp, 4
cmp dword [ebx + 0x230], esi
jne 0x410358
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042ab70
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.004384ee
add esp, 8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x41038b
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042ab70
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.004165c0
add esp, 8
cmp byte [ebx + 0x2aa], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
je 0x4103ce
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.00437b16
add esp, 0x18
jmp 0x4103f1
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.00437b16
add esp, 0x14
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410400
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.0043a280
add esp, 0x10
cmp eax, esi
je 0x41045b
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438be4
push edi
call fcn.0043b225
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042ab70
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042d0f0
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.0043a542
mov eax, dword [ebx + 0x280]
push eax
call fcn.0042ab50
add esp, 8
cmp dword [ebx + 0x234], 0
jne 0x4104a2
mov ecx, dword [ebx + 0x280]
push ecx
call fcn.0042ab70
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042ab70
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.0042ab70
add esp, 4
test esi, esi
jne 0x4104f4
cmp byte [ebp - 1], 0
je 0x4104f4
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042ab70
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.00405d60
mov esi, eax
test esi, esi
je 0x41081b
jmp 0x410510
inc dword [ebp - 0x24]
push esi
mov ecx, ebx
call fcn.0040e880
test al, al
jne 0x410802
push 0x2e
push esi
call fcn.00436920
add esp, 8
cmp byte [ebx + 0x23d], 0
jne 0x410554
test eax, eax
je 0x410554
push str..inf
push eax
call fcn.00438e87
add esp, 8
test eax, eax
jne 0x410554
mov edi, esi
mov dword [ebp - 0x28], edi
jmp 0x410564
push 0x5c
push esi
call fcn.00415510
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.0042d920
add esp, 0xc
test al, al
jne 0x410802
mov ecx, dword [ebx + 0x230]
call fcn.00405db0
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042e120
add esp, 0x14
push esi
mov ecx, ebx
call fcn.0040f290
cmp byte [ebp - 1], 0
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0x46f434
je 0x4105d8
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 0x230]
push 0
push eax
push str.nocache
push esi
call fcn.0040a150
test eax, eax
je 0x4105df
mov dword [ebp - 0x1c], 0x46f430
mov ecx, dword [ebx + 0x230]
push 0
push 0
push str.optional
push esi
call fcn.0040a150
test eax, eax
je 0x41060e
push 0
push 0x46daf8
mov ecx, ebx
call fcn.0040d750
mov dword [ebp - 0x18], eax
jmp 0x4106dc
test edi, edi
je 0x41062b
push 0
push edi
mov ecx, ebx
mov dword [ebp - 0x1c], 0x46f430
call fcn.0040d750
mov dword [ebp - 0x18], eax
jmp 0x4106dc
mov eax, dword [ebp - 0x1c]
mov edi, 0x46f430
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x410653
test cl, cl
je 0x41064f
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x410653
add eax, 2
add edi, 2
test cl, cl
jne 0x410633
xor eax, eax
jmp 0x410658
sbb eax, eax
sbb eax, 0xffffffff
push 0
test eax, eax
jne 0x41066b
push esi
mov ecx, ebx
call fcn.0040d750
mov dword [ebp - 0x18], eax
jmp 0x4106dc
mov ecx, dword [ebx + 0x230]
push 0
push str.hash
push esi
call fcn.0040a060
push eax
push esi
mov ecx, ebx
call fcn.0040cf90
mov dword [ebp - 0x20], eax
test eax, eax
je 0x410802
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x410698
sub ecx, edi
cmp byte [ecx + eax - 6], 0x5c
lea eax, [ecx + eax - 6]
jne 0x4106ad
inc eax
mov ecx, ebx
test eax, eax
je 0x41088c
push 0
push eax
call fcn.0040d750
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x46f434
call fcn.0040d7b0
test al, al
je 0x41085c
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.00437b16
add esp, 0x14
cmp byte [ebx + 0x2aa], 0
je 0x410766
lea edi, [ebp - 0x33c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410710
mov ax, word [0x46dc10]
mov ecx, dword [ebx + 0x230]
push 0
push str.___
push str.hash
push esi
mov word [edi], ax
call fcn.0040a060
mov esi, eax
jmp 0x410740
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410740
lea edi, [ebp - 0x33c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410750
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 0x410770
mov cx, word [0x46dc14]
mov dl, byte [0x46dc16]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0040d7b0
lea ecx, [ebp - 0x33c]
push 0x4698c8
push ecx
call fcn.00437440
add esp, 8
test eax, eax
je 0x4107c5
mov edi, edi
push 0x4698c8
push eax
mov byte [eax], 0x5c
call fcn.00437440
add esp, 8
test eax, eax
jne 0x4107b0
lea eax, [ebp - 0x33c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4107d0
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.0043a280
add esp, 0x10
push esi
cmp eax, edi
jne 0x410899
call fcn.0043a542
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x230]
push eax
call fcn.00405d60
mov esi, eax
test esi, esi
jne 0x410510
mov eax, dword [ebp - 8]
push eax
call fcn.00438be4
mov ecx, dword [ebx + 0x270]
push ecx
call fcn.0042ab70
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.0042d0f0
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x4108ce
push eax
mov ecx, ebx
call fcn.0040d120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438be4
mov edx, dword [ebx + 0x270]
push edx
call fcn.0042ab70
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042d0f0
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.0040d7b0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00438be4
mov edx, dword [ebp + 8]
push edx
call fcn.0043b225
mov eax, dword [ebx + 0x270]
push eax
call fcn.0042ab70
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0042d0f0
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