Function at 0x1002c390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100312c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10041330]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x10041330]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push 0x6cb
push 0x10043088
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [0x10042170]
mov ecx, esi
sub ecx, dword [0x10042178]
mov dword [0x1004211c], eax
add ecx, eax
mov dword [0x10042178], ecx
movzx ecx, word [0x1004217c]
call fcn.10022830
mov cl, byte [0x10042114]
mov bl, byte [esp + 0x13]
mov edx, esi
sub edx, dword [0x10042178]
mov dword [0x1004211c], eax
add edx, eax
mov dword [0x10042178], edx
mov edi, 0xb
cmp eax, dword [str._XL]
je 0x1002c43a
add dword [edi*4 + str._XL], eax
mov bl, al
add bl, bl
sub bl, cl
sub bl, 0x24
dec edi
cmp edi, 1
jg 0x1002c422
movzx ecx, word [0x1004217c]
mov dword [0x100496cc], edi
call fcn.10022830
sub esi, dword [0x10042178]
push str.Shoul
add esi, eax
lea ecx, [esp + 0x1c]
mov dword [0x1004211c], eax
mov dword [0x10042178], esi
call fcn.10001650
mov dword [esp + 0x48], 0
mov esi, dword [0x10042178]
mov dl, byte [0x10042174]
movzx eax, bl
sub eax, dword [0x1004211c]
mov ecx, 0x1da6
add eax, esi
mov dword [0x1004211c], eax
movzx eax, dl
sub eax, esi
movzx esi, byte [0x10042128]
add eax, ecx
cmp esi, 0x1ab8
jne 0x1002c4bf
sub dl, byte [0x1004212b]
movzx ecx, dl
lea ecx, [ecx + ecx + 1]
mov bl, 0x13
sub bl, al
add bl, bl
add bl, dl
add bl, byte [esp + 0x14]
mov edx, dword [0x10042170]
add bl, cl
movzx eax, bl
sub eax, ecx
add eax, 0x55
add edx, eax
mov dword [0x10042178], eax
add al, cl
lea edx, [edx + edx - 0x30]
inc al
movzx ebx, dx
mov byte [0x10042174], al
mov eax, 0x10043088
mov byte [esp + 0x13], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c500
sub eax, edx
push eax
lea eax, [esp + 0x1c]
call fcn.10001a00
movzx eax, byte [0x10042128]
cmp eax, 0x1ab8
mov eax, dword [0x10042114]
jne 0x1002c53e
movzx ecx, byte [0x1004212b]
sub eax, ecx
lea edx, [eax + eax + 1]
mov dword [0x10042114], eax
mov dword [0x10042178], edx
mov edx, dword [0x1004211c]
mov esi, dword [0x10042138]
mov ecx, 3
mov dword [0x100496cc], ecx
cmp edx, dword [str._XL]
je 0x1002c571
movzx edi, bl
sub edi, dword [ecx*4 + str._XL]
add edi, edx
lea eax, [eax + edi - 0x31]
cmp eax, esi
je 0x1002c577
inc ecx
cmp ecx, 0xb
jl 0x1002c555
cmp dword [0x10042150], 0x1ab8
mov dword [0x10042114], eax
mov dword [0x100496cc], ecx
jne 0x1002c5a4
sub bl, byte [0x1004215c]
movzx eax, bl
lea eax, [eax + eax + 1]
mov byte [esp + 0x13], bl
mov dword [0x10042114], eax
push eax
call fcn.1002b1a0
mov bl, byte [0x10042122]
mov cl, byte [0x10042174]
mov esi, 3
add esp, 4
mov dword [0x1004211c], eax
mov dword [0x100496cc], esi
lea esp, [esp]
cmp cl, byte [0x10042120]
je 0x1002c5f5
movzx edx, byte [esi + 0x10042120]
movzx edi, cl
sub edi, edx
add edi, dword [0x10042178]
movzx edx, bl
lea eax, [eax + edi - 0x31]
cmp eax, edx
je 0x1002c5fb
inc esi
cmp esi, 0xb
jl 0x1002c5d0
mov edx, dword [0x10042170]
lea ecx, [edx*8]
sub ecx, edx
add ecx, eax
mov dword [0x1004211c], eax
mov dword [0x100496cc], esi
movzx esi, byte [0x10042120]
movzx eax, bl
add eax, esi
cmp eax, 0x141
jne 0x1002c647
lea eax, [ecx*8]
sub eax, ecx
movzx ecx, byte [esp + 0x13]
add edx, eax
mov dword [0x10042170], edx
imul edx, edx, 0x62
sub ecx, edx
jmp 0x1002c65f
mov al, dl
add al, byte [esp + 0x13]
add edx, edx
add al, 0x7b
mov byte [0x10042122], al
mov eax, 0x57
sub eax, edx
add ecx, eax
mov dword [0x10042178], ecx
mov dword [esp + 0x48], 1
cmp dword [esp + 0x34], 0x10
jb 0x1002c681
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10002d20
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.10001120
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100025d0
mov esp, ebp
pop ebp
ret 0xc