Function at 0x10003240
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 8], 0
jne 0x1000325e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100034cc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10003296
mov ecx, dword [ebp + 8]
push ecx
call 0x10000000
add esp, 4
push eax
push str._s_not_found._Searching_via_DevicePath_not_implemented_n
call 0x10000000
add esp, 8
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100034cc
cmp dword [ebp + 0xc], 0
je 0x100032a8
cmp dword [ebp + 0x10], 0
je 0x100032a8
cmp dword [ebp + 0x14], 0
jne 0x100032b7
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100034cc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
push str.Signature
push 0x100093c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x100032e4
xor eax, eax
jmp 0x100034cc
push str._Chicago_
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003317
push str._Windows_NT_
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003317
xor eax, eax
jmp 0x100034cc
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov word [ebp + ecx - 0x224], dx
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x10009314
push 0x100093c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x10003358
mov dword [ebp - 0x10], 1
jmp 0x1000335f
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x100033c3
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x226], cx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x222]
push eax
call dword [0x10000000]
test eax, eax
je 0x100033c3
lea ecx, [ebp - 0x224]
push ecx
call 0x10000000
add esp, 4
push eax
push str.failed_to_convert___s__into_a_guid_n
call 0x10000000
add esp, 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100034cc
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov word [ebp + eax - 0x224], cx
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
push 0x10009328
push 0x100093c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x10003409
mov dword [ebp - 0x14], 1
jmp 0x10003410
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0x103
jb 0x1000342c
push str.buffer_might_be_too_small_n
call 0x10000000
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x10003456
cmp dword [ebp - 8], 0
jne 0x10003456
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov word [edx + eax], cx
push str.class_name_lookup_via_guid_not_implemented_n
call 0x10000000
add esp, 4
cmp dword [ebp - 8], 0
je 0x10003486
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x10003477
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10003486
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
je 0x100034ad
cmp dword [ebp - 4], 0
je 0x1000349b
mov dword [ebp - 0x18], 1
jmp 0x100034a2
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [ebp - 0xc], 0
jne 0x100034c2
cmp dword [ebp - 8], 0
jne 0x100034c2
mov dword [ebp - 0x1c], 0
jmp 0x100034c9
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x14