Function at 0x41c140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x228
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10c]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x170]
push ecx
push str._sSchool.ini
push edx
call fcn.0043a6f0
add esp, 0xc
lea eax, [esp + 0x170]
push 0x4494fc
push eax
call fcn.0043b110
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x41c1bc
mov ecx, dword [esp + 0x23c]
push eax
push 0x44b4f8
push 0x44b4e0
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
lea edx, [esp + 0x44]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
push str._s_s_s
push ebp
call fcn.0043b0c0
add esp, 0x14
mov esi, str.Full
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41c20a
test cl, cl
je 0x41c206
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41c20a
add eax, 2
add esi, 2
test cl, cl
jne 0x41c1e2
xor eax, eax
jmp 0x41c20f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c21d
mov dword [0x4511a8], eax
jmp 0x41c2ab
mov esi, str.Normal
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41c24e
test cl, cl
je 0x41c24a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41c24e
add eax, 2
add esi, 2
test cl, cl
jne 0x41c226
xor eax, eax
jmp 0x41c253
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c263
mov dword [0x4511a8], 1
jmp 0x41c2ab
mov esi, str.Small
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41c294
test cl, cl
je 0x41c290
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41c294
add eax, 2
add esi, 2
test cl, cl
jne 0x41c26c
xor eax, eax
jmp 0x41c299
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c61a
mov dword [0x4511a8], 2
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
push str._s_s_s
push ebp
call fcn.0043b0c0
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
je 0x41c311
lea eax, [esp + 0x44]
lea ecx, [esp + 0xa8]
push eax
push 0x44b4a8
push ecx
call fcn.0043a6f0
mov eax, dword [esp + 0x248]
add esp, 0xc
lea edx, [esp + 0xa8]
push 0
push str.SCHOOL.INI
push edx
push eax
jmp 0x41c64b
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
push 0x451160
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x48]
mov edx, ecx
mov esi, edi
mov edi, 0x451158
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push ecx
push str._s_s_s
push ebp
call fcn.0043b0c0
mov al, byte [ebp + 0xc]
add esp, 0x14
test al, 0x10
je 0x41c36a
push 0
push str.SCHOOL.INI
push 0x44b484
jmp 0x41c643
mov edi, 0x451160
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41c3a4
mov bl, 0x5f
cmp byte [edx + 0x451160], bl
jne 0x41c390
mov byte [edx + 0x451160], 0x20
mov edi, 0x451160
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41c381
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
push str._s_s_s
push ebp
call fcn.0043b0c0
mov eax, dword [str.320x200]
mov ecx, dword [0x44b480]
mov edx, dword [str.640x400]
mov dword [esp + 0x28], eax
mov eax, dword [0x44b478]
mov dword [esp + 0x2c], ecx
mov ecx, dword [str.640x480]
mov dword [esp + 0x35], eax
mov eax, dword [str.640x400F]
mov dword [esp + 0x31], edx
mov edx, dword [0x44b470]
mov dword [esp + 0x43], eax
mov eax, dword [str.640x480F]
mov dword [esp + 0x3a], ecx
mov ecx, dword [0x44b464]
mov dword [esp + 0x3e], edx
mov dl, byte [0x44b468]
mov dword [esp + 0x4c], eax
mov al, byte [ebp + 0xc]
mov dword [esp + 0x47], ecx
mov ecx, dword [0x44b458]
mov byte [esp + 0x4b], dl
mov dl, byte [0x44b45c]
add esp, 0x14
test al, 0x10
mov byte [esp + 0x1c], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x2e], 0
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x40], dl
je 0x41c464
mov eax, dword [esp + 0x23c]
push 0
push str.SCHOOL.INI
push 0x44b440
push eax
jmp 0x41c64b
xor edi, edi
lea ebp, [esp + 0x14]
mov esi, ebp
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41c498
test cl, cl
je 0x41c494
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41c498
add eax, 2
add esi, 2
test cl, cl
jne 0x41c470
xor eax, eax
jmp 0x41c49d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c4aa
inc edi
add ebp, 9
cmp edi, 5
jl 0x41c46a
cmp edi, 5
jl 0x41c4d3
mov eax, dword [esp + 0x23c]
push 0
push str.SCHOOL.INI
push 0x44b430
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x41c652
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x44]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
xor ebx, ebx
push str._s_s_s
push esi
mov dword [0x4511ac], edi
mov dword [0x4511a0], ebx
call fcn.0043b0c0
add esp, 0x14
lea edx, [esp + 0x44]
push edx
call fcn.0043b4c0
add esp, 4
test eax, eax
jge 0x41c533
lea eax, [esp + 0x44]
lea ecx, [esp + 0xa8]
push eax
push 0x44b418
push ecx
call fcn.0043a6f0
add esp, 0xc
push ebx
jmp 0x41c5fc
lea ecx, [esp + 0x44]
push ecx
call fcn.0043b4c0
add esp, 4
cmp eax, ebx
mov dword [0x4511a0], eax
je 0x41c5c6
shl eax, 5
push eax
call fcn.0043a900
mov dword [0x4511a4], eax
mov eax, dword [0x4511a0]
add esp, 4
xor ebp, ebp
cmp eax, ebx
jle 0x41c5c6
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
push 0x449118
push esi
call fcn.0043b0c0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
call fcn.00444130
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
jne 0x41c5e3
mov ecx, dword [0x4511a4]
lea edi, [esp + 0x44]
xor eax, eax
lea edx, [ecx + ebx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
cmp ebp, dword [0x4511a0]
jl 0x41c565
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043b040
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret
inc ebp
lea ecx, [esp + 0xa8]
push ebp
push 0x44b3fc
push ecx
call fcn.0043a6f0
add esp, 0xc
push 0
mov eax, dword [esp + 0x240]
lea edx, [esp + 0xac]
push str.SCHOOL.INI
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
jmp 0x41c652
lea edx, [esp + 0x44]
lea eax, [esp + 0xa8]
push edx
push 0x44b3e4
push eax
call fcn.0043a6f0
add esp, 0xc
lea ecx, [esp + 0xa8]
push 0
push str.SCHOOL.INI
push ecx
mov edx, dword [esp + 0x248]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call fcn.0043b040
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x228
ret