Function at 0x491e70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ce3
mov eax, dword fs:[0]
push eax
sub esp, 0x57c
mov eax, dword [0x4d4e88]
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 ebx, ecx
mov dword [ebp - 0x554], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
test eax, eax
mov edx, 0x4c11c8
cmovne edx, eax
push 0
lea eax, [ebp - 0x555]
push eax
mov dword [ebp - 0x578], ecx
push edx
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
mov dword [ebp - 0x564], edx
call fcn.00403fb0
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov edi, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x491f1d
test eax, eax
jne 0x491f45
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push edi
push 0
push str.IMAGES
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x574], edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401ac0
push 0x63
lea eax, [ebp - 0xd7]
push 0
push eax
mov byte [ebp - 0xd8], 0
call fcn.00459250
push 0x63
lea eax, [ebp - 0x73]
push 0
push eax
mov byte [ebp - 0x74], 0
call fcn.00459250
push 0x3e7
lea eax, [ebp - 0x4bf]
push 0
push eax
mov byte [ebp - 0x4c0], 0
call fcn.00459250
mov esi, 1
add esp, 0x24
mov dword [ebp - 0x560], esi
cmp edi, esi
jl 0x492d7c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebx + 0x40]
mov dword [ebp - 0x568], eax
lea esp, [esp]
push 0x48
call fcn.00459406
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x492047
mov dword [ebx], 0x4ac964
mov dword [ebx + 0x28], 0x4ac96c
call edi
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x18], 7
mov dword [ebx + 0x14], 0
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 4]
push dword [eax + ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x560]
jmp 0x492049
xor ebx, ebx
push str.IMAGE
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0xa
lea eax, [ebp - 0x4c0]
push eax
push esi
call fcn.0049aaba
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp - 0x588]
push eax
mov ecx, ebx
call fcn.0048efb0
mov esi, eax
mov dword [ebp - 0x55c], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call edi
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x564]
test eax, eax
mov edx, 0x4c11c8
cmovne edx, eax
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edx], ax
jne 0x4920f3
xor ecx, ecx
jmp 0x492115
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x492100
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492100
sub ecx, esi
mov esi, dword [ebp - 0x55c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x554]
mov byte [ebp - 4], 3
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [esi]
mov dword [ebp - 0x55c], eax
call fcn.0048f090
mov edi, eax
mov dword [esi + 8], edi
mov ecx, dword [ebp - 0x4dc]
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x49219b
test eax, eax
jne 0x4921c3
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push dword [ebp - 0x55c]
lea eax, [ebp - 0xd8]
push 0x104
push edi
push 0x4c101c
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [eax + 4]
lea esi, [ebp - 0x4c8]
add esi, eax
call edi
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call esi
cmp dword [ebp - 0x4d8], 8
jb 0x49223e
push dword [ebp - 0x4ec]
call esi
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x588]
mov dword [ebp - 4], 0xffffffff
call fcn.00485bd0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4bb10c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call edi
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x564]
test eax, eax
mov edx, 0x4c11c8
cmovne edx, eax
xor eax, eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edx], ax
jne 0x4922fc
xor ecx, ecx
jmp 0x492310
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492301
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x554]
mov dword [ebp - 4], 5
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov edi, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x492389
test eax, eax
jne 0x4923b1
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push edi
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [eax + 4]
lea esi, [ebp - 0x4c8]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call edi
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call esi
cmp dword [ebp - 0x4d8], 8
jb 0x492431
push dword [ebp - 0x4ec]
call esi
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebx + 0x38]
push ecx
lea eax, [ebx + 0x34]
push eax
sub esp, 0x30
mov dword [ecx], 0
mov ecx, esp
mov dword [eax], 0
push 1
lea eax, [ebp - 0x555]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov ecx, dword [ebp - 0x554]
call fcn.0048e860
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4bb128
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call edi
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x564]
test eax, eax
mov edx, 0x4c11c8
cmovne edx, eax
xor eax, eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edx], ax
jne 0x49251d
xor ecx, ecx
jmp 0x492531
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492522
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x554]
mov dword [ebp - 4], 7
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov edi, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x4925aa
test eax, eax
jne 0x4925d2
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push edi
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [eax + 4]
lea esi, [ebp - 0x4c8]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call edi
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call esi
cmp dword [ebp - 0x4d8], 8
jb 0x492652
push dword [ebp - 0x4ec]
call esi
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebx + 0x40]
push eax
sub esp, 0x30
mov ecx, esp
mov dword [eax], 0
push 1
lea eax, [ebp - 0x56b]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov ecx, dword [ebp - 0x554]
call fcn.0048e650
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.TRNSPRNTCLR
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x4f0], 0x4c13a0
mov dword [ebp - 0x4c8], 0x4c18a4
call edi
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x564]
test eax, eax
mov edx, 0x4c11c8
cmovne edx, eax
xor eax, eax
mov dword [ebp - 4], 8
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
cmp word [edx], ax
jne 0x49272d
xor ecx, ecx
jmp 0x492741
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492732
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4ec]
call fcn.00406eb0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x554]
mov dword [ebp - 4], 9
lea ecx, [ecx + 8]
call fcn.0048f090
mov ecx, dword [ebp - 0x4dc]
mov edi, eax
mov eax, dword [ebp - 0x4d4]
lea esi, [ecx*2 + 2]
mov ecx, dword [ebp - 0x4d0]
cmp esi, ecx
jae 0x4927ba
test eax, eax
jne 0x4927e2
push eax
call fcn.0045973a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x4d0], esi
call fcn.0045885f
mov ecx, dword [ebp - 0x4d0]
add esp, 8
mov dword [ebp - 0x4d4], eax
push 3
push ecx
push eax
lea ecx, [ebp - 0x4f0]
call fcn.0048c6a0
push edi
push 0x3e8
lea eax, [ebp - 0x4c0]
push eax
push 0x4c101c
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x4d4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x4c8]
lea esi, [ebp - 0x4c8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call esi
cmp dword [ebp - 0x4d8], 8
jb 0x492860
push dword [ebp - 0x4ec]
call esi
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebx + 0x3c]
push eax
sub esp, 0x30
mov ecx, esp
mov dword [eax], 0x808080
push 1
lea eax, [ebp - 0x569]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.00484720
mov ecx, dword [ebp - 0x554]
call fcn.0048e4e0
push dword [ebx + 0x40]
lea eax, [ebp - 0x4c0]
push 0x4bb138
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebx + 4]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4928e7
mov esi, dword [edi]
jmp 0x4928e9
mov esi, edi
mov dword [ebp - 0x520], 0x4c13c8
mov dword [ebp - 0x4f8], 0x4c13f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4f4], eax
test esi, esi
mov edx, 0x4c11c8
cmovne edx, esi
xor eax, eax
mov dword [ebp - 0x508], 7
mov dword [ebp - 0x50c], 0
mov word [ebp - 0x51c], ax
mov dword [ebp - 4], 0xa
cmp word [edx], ax
jne 0x492940
xor ecx, ecx
jmp 0x492954
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492945
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x51c]
call fcn.00406eb0
mov eax, dword [ebp - 0x4f8]
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4fc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
lea eax, [ebp - 0x56a]
push eax
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x550]
mov dword [ebp - 4], 0xb
call fcn.00484720
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 0xc
call fcn.00407f60
mov eax, dword [ebp - 0x528]
lea esi, [ebp - 0x528]
mov eax, dword [eax + 4]
mov byte [ebp - 4], 0xb
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x534]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x52c]
call esi
cmp dword [ebp - 0x538], 8
jb 0x492a1b
push dword [ebp - 0x54c]
call esi
xor eax, eax
mov word [ebp - 0x54c], ax
mov eax, dword [ebp - 0x550]
mov dword [ebp - 0x538], 7
mov dword [ebp - 0x53c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x550]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x568]
lea eax, [ebp - 0x520]
push eax
call fcn.0048ac70
mov esi, eax
mov eax, dword [ebp - 0x568]
cmp esi, dword [eax]
je 0x492ab2
lea eax, [esi + 0x10]
test eax, eax
je 0x492a78
add eax, 4
jmp 0x492a7a
xor eax, eax
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x492a85
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x50c]
lea ecx, [ebp - 0x51c]
push 0
call fcn.004086e0
test eax, eax
js 0x492aac
mov dword [ebp - 0x570], esi
lea eax, [ebp - 0x570]
jmp 0x492ac0
mov eax, dword [ebp - 0x568]
mov eax, dword [eax]
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x57c]
mov ecx, dword [ebp - 0x554]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x40]
jne 0x492cc7
push 0xc
call fcn.00459406
mov esi, eax
add esp, 4
mov dword [ebp - 0x55c], esi
mov byte [ebp - 4], 0xd
test esi, esi
je 0x492b43
push 0x30
call fcn.00459406
push 0x30
push 0
push eax
mov dword [esi], eax
call fcn.00459250
push 0x4c
call fcn.00459406
push 0x4c
push 0
push eax
mov dword [esi + 4], eax
call fcn.00459250
push 0x18
call fcn.00459406
add esp, 0x24
test eax, eax
je 0x492b29
mov ecx, eax
call fcn.004850a0
jmp 0x492b2b
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
jmp 0x492b45
xor esi, esi
mov dword [ebx + 0x44], esi
cmp dword [edi + 0x14], 8
jb 0x492b50
mov edi, dword [edi]
mov dword [ebp - 0x4f0], 0x4c18bc
mov dword [ebp - 0x4c8], 0x4c13e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c4], eax
test edi, edi
mov edx, 0x4c11c8
cmovne edx, edi
xor eax, eax
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov word [ebp - 0x4ec], ax
mov byte [ebp - 4], 0xe
cmp word [edx], ax
jne 0x492ba4
xor ecx, ecx
jmp 0x492bbf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492bb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4ec]
call fcn.004075b0
mov eax, dword [ebp - 0x4c8]
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x4cc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4c8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x554]
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ecx + 0x38]
mov byte [ebp - 4], 0xf
call fcn.00486660
mov edi, dword [eax]
mov eax, dword [ebp - 0x4c8]
lea esi, [ebp - 0x4c8]
mov eax, dword [eax + 4]
mov byte [ebp - 4], 0xb
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x4d4]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4cc]
call esi
cmp dword [ebp - 0x4d8], 8
jb 0x492c65
push dword [ebp - 0x4ec]
call esi
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x4f0]
mov dword [ebp - 0x4d8], 7
mov dword [ebp - 0x4dc], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x4f0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [edi + 4]
mov ecx, dword [ebx + 0x44]
push dword [edi]
lea eax, [ebx + 0x40]
push ebx
push eax
lea eax, [ebx + 0x3c]
push eax
call fcn.0048f170
mov ecx, dword [ebp - 0x568]
lea eax, [ebp - 0x520]
push eax
call fcn.004864a0
mov ecx, dword [ebx + 0x44]
mov dword [eax], ecx
jmp 0x492ccd
mov eax, dword [eax + 0x40]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebp - 0x578]
lea eax, [ebp - 0x560]
push eax
call fcn.00486380
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [eax], ebx
mov eax, dword [ebp - 0x4f8]
lea esi, [ebp - 0x4f8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, eax
call edi
mov dword [esi], eax
push dword [ebp - 0x504]
call fcn.0045973a
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4fc]
call esi
cmp dword [ebp - 0x508], 8
jb 0x492d30
push dword [ebp - 0x51c]
call esi
xor eax, eax
mov word [ebp - 0x51c], ax
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x508], 7
mov dword [ebp - 0x50c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x520]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x560]
inc esi
mov dword [ebp - 0x560], esi
cmp esi, dword [ebp - 0x574]
jle 0x491ff0
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.004591d7
mov esp, ebp
pop ebp
ret 8