Function at 0x10005380
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10017b34
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10020058]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x100214f8]
push str.third
push 0
lea edx, [ecx + eax - 0x39]
push 0x1f0001
mov word [0x100214fc], dx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
movzx esi, word [0x100214f4]
mov dword [0x100cb150], eax
mov eax, dword [0x100214f8]
lea edi, [esi + eax - 0x39]
mov eax, edi
call fcn.100050c0
mov dword [0x100214f8], eax
lea eax, [esi - 0xcf44]
cdq
push 0
mov ebx, eax
push 2
xor eax, eax
push eax
push edi
mov esi, edx
call fcn.10014540
add ebx, eax
adc esi, edx
add ebx, dword [0x100214b8]
adc esi, dword [0x100214bc]
or edi, 0xffffffff
test byte [0x100cc2d4], 1
mov dword [esp + 0x20], esi
jne 0x1000545a
or dword [0x100cc2d4], 1
xor esi, esi
push 0x100cc1a8
mov ecx, str.flow
mov dword [esp + 0x5c], esi
call fcn.10005a20
push 0x10017bf0
call fcn.1000c148
add esp, 4
mov dword [esp + 0x58], edi
jmp 0x1000545c
xor esi, esi
movzx eax, byte [0x100214cb]
mov ecx, dword [0x100214b8]
cdq
cmp edx, esi
lea ecx, [ecx + ebx + 0x19]
mov dword [0x100214f8], ecx
mov dword [0x100214b8], 0x18d
mov dword [0x100214bc], esi
ja 0x100054b2
jb 0x10005491
cmp eax, 0x18d
ja 0x100054b2
mov eax, dword [0x100214f0]
sub eax, ecx
add eax, 0x18d
mov dword [0x100214f8], eax
add eax, 0x196
mov byte [0x100214cf], cl
mov dword [0x100214f0], eax
mov eax, ebx
call fcn.100050c0
movzx edx, byte [0x100214c5]
lea ecx, [ebx + 0x18]
cmp edx, ecx
jb 0x100054eb
mov edx, dword [0x100214b8]
mov al, dl
imul byte [0x100214cc]
mov byte [0x100214cc], al
lea eax, [edx + ecx + 9]
mov dword [0x100214b8], eax
mov dword [0x100214bc], esi
jmp 0x100054f0
mov eax, dword [0x100214b8]
mov edx, dword [esp + 0x14]
lea ecx, [eax + ecx - 0x39]
push 0x100275b0
lea eax, [eax + ebx - 9]
push 0x435
mov word [0x100214f4], cx
mov dword [0x100214b0], edx
mov dword [0x100214b4], esi
mov dword [0x100214f8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test byte [0x100cc2d4], 2
mov ecx, dword [0x100214b8]
lea edx, [ecx + eax - 0x39]
mov dword [0x100214f0], eax
mov dword [0x100214f8], edx
jne 0x10005576
or dword [0x100cc2d4], 2
push 0x100cc078
mov ecx, str.multiply
mov dword [esp + 0x5c], 1
call fcn.10005a20
push 0x10017be0
call fcn.1000c148
mov dword [esp + 0x5c], edi
mov eax, dword [0x100214f0]
add esp, 4
mov ecx, dword [0x100214f8]
push str.Depend_chick_Sen_silent_te
lea edx, [eax + ecx + 9]
mov dword [0x100214bc], esi
push 0x100cc1a8
lea esi, [esp + 0x40]
mov dword [0x100214b8], edx
call fcn.10005ab0
mov dword [esp + 0x58], 2
movzx ecx, byte [0x100214cb]
mov eax, dword [0x100214f8]
cmp ecx, eax
ja 0x100055e6
mov edx, 2
mul edx
sub eax, ebx
sbb edx, dword [esp + 0x20]
mov byte [0x100214cf], bl
mov ebx, eax
shl eax, 4
add eax, ebx
add eax, eax
add eax, eax
mov ecx, 9
sub ecx, eax
mov dword [esp + 0x20], edx
mov dword [0x100214f8], ecx
push str.collect__event_eve_swim_My
push 0x100cc078
lea esi, [esp + 0x2c]
call fcn.10005ab0
mov esi, dword [0x100214b0]
mov eax, dword [0x100214f0]
mov edx, esi
sub edx, dword [0x100214f8]
lea ecx, [eax + edx + 0x18]
mov eax, ebx
mov dword [0x100214f0], ecx
call fcn.100052d0
mov ecx, 9
lea edx, [ebx + 9]
sub byte [ecx + 0x100214c0], al
sub ecx, 2
add eax, edx
cmp ecx, 2
jg 0x10005625
mov cx, word [0x100214f4]
sub esi, eax
add esi, ebx
movzx edx, cx
mov dword [0x100214f8], esi
lea esi, [edx + esi + 9]
mov eax, 9
mov dword [0x100214b8], esi
mov dword [0x100214bc], 0
sub byte [eax + 0x100214c0], cl
sub eax, 2
cmp eax, 2
jg 0x10005662
push esi
mov dword [0x100cc064], eax
call fcn.10004110
movzx eax, word [0x100214f4]
mov esi, dword [0x100214f8]
lea edi, [eax + esi + 9]
movzx eax, byte [0x100214c3]
cdq
add esp, 4
mov ecx, 2
mov dword [0x100214b8], edi
mov dword [0x100214bc], 0
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x14]
jne 0x100056be
cmp dword [0x100214bc], edx
je 0x100056c6
add ecx, 2
cmp ecx, 9
jl 0x100056b0
movzx edi, word [0x100214fc]
mov edx, dword [0x100214b0]
mov ecx, esi
imul ecx, ecx, 0x45
add ecx, edi
sub ebx, ecx
sbb dword [esp + 0x20], 0
lea eax, [edx + esi + 9]
mov ecx, 9
mov dword [0x100214f0], eax
nop
sub byte [ecx + 0x100214c0], dl
sub ecx, 2
cmp ecx, 2
jg 0x100056f0
mov dword [0x100cc064], ecx
movzx ecx, byte [0x100214c5]
cmp ecx, esi
jb 0x10005729
mov al, byte [0x100214fc]
imul byte [0x100214cc]
lea edx, [edi + esi + 9]
mov byte [0x100214cc], al
mov dword [0x100214f0], edx
call fcn.10001030
mov eax, dword [0x100214f8]
mov ecx, dword [0x100214b0]
lea edx, [ecx + eax - 0x39]
mov dword [0x100214f0], edx
call fcn.100050c0
movzx ecx, byte [0x100214c0]
cmp ecx, 0x1169
mov dword [0x100214b0], eax
mov dword [0x100214b4], 0
jne 0x10005773
movzx edx, byte [0x100214c2]
sub dword [0x100214f8], edx
mov edx, dword [0x100214f8]
lea eax, [eax + edx + 9]
movzx edx, byte [0x100214c3]
mov ecx, 2
lea esp, [esp]
cmp eax, edx
je 0x1000579c
add ecx, 2
cmp ecx, 9
jl 0x10005790
mov cx, word [0x100214f4]
mov eax, 9
jmp 0x100057b0
sub byte [eax + 0x100214c0], cl
sub eax, 2
cmp eax, 2
jg 0x100057b0
mov dword [0x100cc064], eax
movzx eax, cx
mov ecx, dword [0x100214b8]
push 0x435
push 0x100ca358
lea edx, [eax + ecx - 9]
push str.Exercis
mov dword [0x100214f0], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx ecx, byte [0x100214c1]
movzx eax, byte [0x100214c2]
mov esi, dword [0x100214f0]
sub eax, ecx
cmp eax, 0x1b4
mov dword [esp + 0x14], eax
jne 0x10005818
mov ecx, dword [0x100214f8]
mov eax, esi
xor edx, edx
jmp 0x10005832
mov eax, dword [esp + 0x20]
mov edx, esi
imul edx, edx, 0x119c3
push eax
push ebx
push 0
push edx
call fcn.10014540
lea ecx, [eax + eax + 9]
movzx edi, word [0x100214f4]
mov ebx, ecx
sub ebx, edi
cmp dword [esp + 0x14], 0x1b4
lea esi, [esi + ebx + 0x18]
mov dword [0x100214f0], esi
jne 0x1000585d
mov eax, ecx
mov dword [esp + 0x20], 0
jmp 0x10005875
imul ecx, ecx, 0x119c3
push edx
push eax
push 0
push ecx
call fcn.10014540
mov dword [esp + 0x20], edx
lea ecx, [eax + eax + 9]
imul eax, eax, 0x45
mov edx, esi
neg edx
sub edx, eax
add ecx, edx
mov edx, dword [0x100214b8]
lea eax, [esi + ecx - 9]
lea edx, [edx + eax + 0x19]
mov word [0x100214f4], dx
movzx edx, word [0x100214da]
mov dword [0x100214f8], ecx
xor ecx, ecx
cmp edx, esi
jb 0x100058cd
mov edx, dword [0x100214e8]
imul edx, eax
mov word [0x100214e8], dx
add esi, 9
xor edx, edx
add esi, eax
adc edx, ecx
mov dword [0x100214b8], esi
mov dword [0x100214bc], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100058de
push eax
call fcn.1000be90
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100058ef
push eax
call fcn.1000be90
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc