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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5483cd
mov eax, dword fs:[0]
push eax
sub esp, 0x940
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.CMasterSetup::GetInitInfo______________________________IN._n
push 5
mov dword [ebp - 0x93c], edi
call fcn.00411380
mov eax, dword [ebp + 8]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x4106d1
mov dword [edi + 0x18], eax
call fcn.0043d2a1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4106eb
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x938], eax
lea ecx, [ebp - 0x934]
mov dword [ebp - 4], ebx
call fcn.0043af70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x87c], ebx
je 0x410724
push str..x64
push 6
lea ecx, [ebp - 0x24]
push ecx
jmp 0x410737
cmp dword [ebp - 0x878], ebx
je 0x41073f
push str..IA64
push 6
lea edx, [ebp - 0x24]
push edx
call fcn.00531d3f
add esp, 0xc
call fcn.00445a97
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x68]
push ebx
push ebx
push 0x101
lea ecx, [ebp - 0x228]
push ecx
push ebx
push ebx
push ebx
push ebx
push edx
call fcn.00530997
lea eax, [ebp - 0x228]
add esp, 0x24
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410770
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x938]
call fcn.00401600
mov edx, dword [ebp - 0x938]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4107b9
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov edx, dword [ebp - 0x938]
push 0x101
lea ecx, [ebp - 0x638]
push ecx
push 0x101
lea eax, [ebp - 0x228]
push eax
push ebx
push ebx
push ebx
push ebx
push edx
call fcn.00530997
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x638]
push edx
call fcn.00531ea5
add esp, 0x2c
test eax, eax
jne 0x410816
call fcn.00445a97
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x68]
push ebx
push ebx
push ebx
push ebx
push 0x105
lea ecx, [ebp - 0x434]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push eax
jmp 0x410842
call fcn.00445a97
mov eax, dword [eax + 4]
push ebx
push ebx
push 0x101
lea ecx, [ebp - 0x228]
push ecx
push 0x105
lea edx, [ebp - 0x434]
push edx
mov edx, dword [eax + 0x68]
push 4
lea ecx, [ebp - 0x18]
push ecx
push edx
call fcn.00530997
lea eax, [ebp - 0x18]
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410850
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x938]
call fcn.00401600
lea eax, [ebp - 0x434]
lea edx, [eax + 2]
jmp 0x410880
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410880
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x938]
call fcn.00405ed0
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
jmp 0x4108b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4108b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x938]
call fcn.00405ed0
push 4
push str..ini
lea ecx, [ebp - 0x938]
call fcn.00405ed0
mov esi, dword [ebp - 0x938]
push esi
push str.CMasterSetupIF::GetInitInfo_strIniFile___1_s__n
push 4
call fcn.00411380
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0xc
or ecx, eax
jge 0x41091b
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov esi, dword [ebp - 0x938]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410975
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x410948
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov esi, dword [ebp - 0x938]
push esi
push ebx
push str.SetPrinterLang
push str.EXIF_Default
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [edi + 0x44], al
movzx eax, al
push eax
push str.CMasterSetupIF::GetInitInfo_IniFile_exist._SetPrinterLang_1_d__n
push 4
call fcn.00411380
add esp, 0xc
lea ecx, [ebp - 0x934]
mov byte [ebp - 4], bl
call fcn.0043ae50
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x5cce78], 3
jge 0x4109dd
mov ecx, dword [edi + 0x18]
mov dword [ecx + 0xc], ebx
mov edx, dword [edi + 0x18]
push str.CMasterSetup::GetInitInfo_commandline_arguments_are_too_few._n
push 2
mov dword [edx + 0x10], ebx
call fcn.00411380
push str.CMasterSetup::GetInitInfo______________________________OUT._n
push 5
call fcn.00411380
add esp, 0x10
xor al, al
jmp 0x410eaf
mov eax, dword [0x5cce80]
mov ecx, dword [eax + 8]
push 6
push str.HANDLE
push ecx
call fcn.005308f9
add esp, 0xc
test eax, eax
jne 0x410e9e
mov edx, dword [edi + 0x18]
mov dword [edi + 4], 0x1010001
mov word [edi + 8], 1
mov byte [edi + 0xa], bl
mov dword [edx + 0x10], ebx
mov eax, dword [edi + 0x18]
mov dword [eax + 0xc], 1
mov ecx, dword [0x5cce80]
mov edx, dword [ecx + 8]
mov eax, edx
lea esi, [eax + 2]
jmp 0x410a30
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410a30
sub eax, esi
sar eax, 1
push eax
lea esi, [edi + 0x1c]
push edx
mov ecx, esi
call fcn.004026d0
cmp dword [esi + 0x14], 8
jb 0x410a53
mov esi, dword [esi]
push esi
push str.CMasterSetupIF::GetInitInfo_m_strMIParam____1_s___n
push 4
call fcn.00411380
mov edi, 2
add esp, 0xc
cmp dword [0x5cce78], edi
jle 0x410e07
call fcn.0043d2a1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4106e1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x938], eax
mov ecx, dword [0x5cce80]
mov edx, dword [ecx + edi*4]
mov dword [ebp - 4], 2
cmp edx, ebx
jne 0x410ab2
xor eax, eax
jmp 0x410ac6
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410ab7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x938]
call fcn.00401600
mov esi, dword [ebp - 0x938]
cmp dword [esi - 0xc], ebx
jl 0x410dd7
push 0x5625f4
push esi
call fcn.005319e5
add esp, 8
cmp eax, ebx
je 0x410bca
sub eax, esi
sar eax, 1
js 0x410bca
mov edx, dword [0x5cce80]
mov eax, dword [edx + edi*4]
push eax
push edi
push str.CMasterSetupIF::GetInitInfo___targv__1_d______2_s___n
push 4
call fcn.00411380
add esp, 0x10
cmp dword [esi - 0xc], ebx
jg 0x410b26
or eax, 0xffffffff
jmp 0x410b3e
push 0x3d
push esi
call fcn.00530319
add esp, 8
cmp eax, ebx
jne 0x410b3a
or eax, 0xffffffff
jmp 0x410b3e
sub eax, esi
sar eax, 1
inc eax
push eax
lea ecx, [ebp - 0x94c]
push ecx
lea ecx, [ebp - 0x938]
call fcn.004104b0
push eax
lea ecx, [ebp - 0x938]
mov byte [ebp - 4], 3
call fcn.004018e0
mov eax, dword [ebp - 0x94c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x938]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x410baf
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov esi, dword [ebp - 0x938]
push 0x10
lea ecx, [ebp - 0x940]
push ecx
push esi
call fcn.005324df
mov edx, dword [ebp - 0x93c]
add esp, 0xc
mov dword [edx + 0x38], eax
cmp dword [esi - 0xc], ebx
jl 0x410dd7
push str.MSGID
push esi
call fcn.005319e5
add esp, 8
cmp eax, ebx
je 0x410cba
sub eax, esi
sar eax, 1
js 0x410cba
mov eax, dword [0x5cce80]
mov ecx, dword [eax + edi*4]
push ecx
push edi
push str.CMasterSetupIF::GetInitInfo___targv__1_d______2_s___n
push 4
call fcn.00411380
add esp, 0x10
cmp dword [esi - 0xc], ebx
jg 0x410c16
or eax, 0xffffffff
jmp 0x410c2e
push 0x3d
push esi
call fcn.00530319
add esp, 8
cmp eax, ebx
jne 0x410c2a
or eax, 0xffffffff
jmp 0x410c2e
sub eax, esi
sar eax, 1
inc eax
push eax
lea edx, [ebp - 0x948]
push edx
lea ecx, [ebp - 0x938]
call fcn.004104b0
push eax
lea ecx, [ebp - 0x938]
mov byte [ebp - 4], 4
call fcn.004018e0
mov eax, dword [ebp - 0x948]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x938]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x410c9f
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov esi, dword [ebp - 0x938]
push 0x10
lea ecx, [ebp - 0x940]
push ecx
push esi
call fcn.005324df
mov edx, dword [ebp - 0x93c]
add esp, 0xc
mov dword [edx + 0x3c], eax
cmp dword [esi - 0xc], ebx
jl 0x410dd7
push str.INSTNUM
push esi
call fcn.005319e5
add esp, 8
cmp eax, ebx
je 0x410daa
sub eax, esi
sar eax, 1
js 0x410daa
mov eax, dword [0x5cce80]
mov ecx, dword [eax + edi*4]
push ecx
push edi
push str.CMasterSetupIF::GetInitInfo___targv__1_d______2_s___n
push 4
call fcn.00411380
add esp, 0x10
cmp dword [esi - 0xc], ebx
jg 0x410d06
or eax, 0xffffffff
jmp 0x410d1e
push 0x3d
push esi
call fcn.00530319
add esp, 8
cmp eax, ebx
jne 0x410d1a
or eax, 0xffffffff
jmp 0x410d1e
sub eax, esi
sar eax, 1
inc eax
push eax
lea edx, [ebp - 0x944]
push edx
lea ecx, [ebp - 0x938]
call fcn.004104b0
push eax
lea ecx, [ebp - 0x938]
mov byte [ebp - 4], 5
call fcn.004018e0
mov eax, dword [ebp - 0x944]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410d68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x938]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x410d8f
push ebx
lea ecx, [ebp - 0x938]
call fcn.004012e0
mov esi, dword [ebp - 0x938]
push 0x10
lea ecx, [ebp - 0x940]
push ecx
push esi
call fcn.005324df
mov edx, dword [ebp - 0x93c]
add esp, 0xc
mov dword [edx + 0x40], eax
cmp dword [esi - 0xc], ebx
jl 0x410dd7
push str._EASY
push esi
call fcn.005319e5
add esp, 8
cmp eax, ebx
je 0x410dd7
sub eax, esi
sar eax, 1
js 0x410dd7
mov eax, dword [ebp - 0x93c]
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x10], 1
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410dfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [0x5cce78]
jl 0x410a74
mov ecx, dword [ebp - 0x93c]
mov dword [ecx + 0xc], 1
lea ecx, [ebp - 0x660]
call fcn.004316e0
mov edx, dword [0x5cce80]
mov eax, dword [edx + 4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], 6
call fcn.004310d0
test eax, eax
je 0x410e8c
push str.PRIMARY_LANGID
lea ecx, [ebp - 0x660]
xor edi, edi
xor esi, esi
call fcn.004313d0
cmp eax, ebx
je 0x410e5e
mov edi, dword [eax]
push 0x562520
lea ecx, [ebp - 0x660]
call fcn.004313d0
cmp eax, ebx
je 0x410e74
mov esi, dword [eax]
mov eax, dword [ebp - 0x93c]
shl esi, 0xa
or esi, edi
mov ecx, 9
mov word [eax + 0x14], si
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], 0xffffffff
call fcn.00431710
push str.CMasterSetup::GetInitInfo______________________________OUT._n
push 5
call fcn.00411380
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret 4