Function at 0x411160
Capabilities:
Check if file exists
Get file attributes
Get thread local storage value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4dc6e0]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
push 2
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x64], 0
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x100], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xcc], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x94], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x80], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xa8], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x6c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xa0], eax
mov word [eax], cx
cmp ebx, dword [0x4d5004]
mov eax, 0x4afaa0
mov ecx, 0x4afa94
mov byte [ebp - 4], 0xb
cmovne ecx, eax
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0x78]
push 0x4afa48
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x78], esi
push eax
call fcn.00418660
add esp, 0x40
push dword [ebp - 0xe0]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00418660
mov ebx, dword [ebp - 0x5c]
push dword [eax]
call fcn.0048faa4
push ebx
mov dword [ebp - 0x5c], eax
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x90]
call fcn.0048faf7
push esi
call fcn.0048faf7
add esp, 0x20
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4113e8
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x70], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x74], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x8c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x7c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x54], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x70]
mov ebx, dword [ebp - 0xa4]
push eax
movzx eax, byte [ebp + 0x18]
push eax
push 0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
add esp, 0x5c
mov dword [ebp + 0x14], eax
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x70]
mov byte [ebp - 4], 0xb
call fcn.0048faf7
add esp, 0x18
push dword [ebp - 0xe0]
call fcn.0048faa4
push dword [ebp - 0x88]
mov ebx, eax
mov dword [ebp - 0x6c], ebx
call fcn.0048faf7
add esp, 8
cmp byte [ebp + 0x18], 0
jne 0x411423
push 0
push SysReAllocString
push 0x4af9f8
lea ecx, [ebp - 0x6c]
call fcn.004021f0
mov ebx, dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebx
push dword [ebp - 0x9c]
call fcn.00406320
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
test eax, eax
jne 0x4119da
lea eax, [ebp - 0x68]
mov dword [ebp - 0x78], 0
push eax
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x64]
call fcn.00410570
add esp, 0x18
test eax, eax
jne 0x4119d5
push 0x4b4bb0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00418660
add esp, 0xc
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4114b7
push dword [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.0048faf7
add esp, 4
jmp 0x41199f
xor ebx, ebx
push ebx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x84], ebx
push 0x4b4bcc
push eax
call fcn.0049215f
push 2
call fcn.0048fb2f
xor ecx, ecx
mov word [eax], cx
push 0x412
push eax
call fcn.0048fbc1
push 0x412
mov esi, eax
push 0
push esi
mov dword [ebp - 0x90], esi
call fcn.004906c0
add esp, 0x24
lea eax, [ebp - 0x4c]
push dword [ebp - 0x50]
push 0x208
push esi
push 0x4af9b8
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x41198a
push ebx
lea eax, [ebp - 0x4c]
push 0x4b4be0
push eax
call fcn.0049215f
push 2
call fcn.0048fb2f
xor ecx, ecx
mov word [eax], cx
push 0x412
push eax
call fcn.0048fbc1
push 0x412
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc0], edi
call fcn.004906c0
add esp, 0x24
lea eax, [ebp - 0x4c]
push dword [ebp - 0x50]
push 0x208
push edi
push 0x4af9b8
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0xb8], 2
jle 0x4115b5
push 2
push 0x4b4bfc
push esi
call fcn.00491219
add esp, 0xc
test eax, eax
je 0x4115a3
cmp word [esi + 2], 0x3a
jne 0x4115b5
mov ebx, dword [ebp - 0x58]
push esi
call fcn.0048faa4
mov dword [ebp - 0x58], eax
push ebx
jmp 0x41163e
push 0x4afa48
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00418660
lea ecx, [ebp - 0x60]
push ecx
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0041ca30
push 0x4afa48
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00418660
lea ecx, [ebp - 0x90]
push ecx
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0041ca30
mov ebx, dword [ebp - 0x58]
push dword [eax]
call fcn.0048faa4
push ebx
mov dword [ebp - 0x58], eax
call fcn.0048faf7
push dword [ebp - 0xfc]
call fcn.0048faf7
push dword [ebp - 0xe4]
call fcn.0048faf7
add esp, 0x40
push dword [ebp - 0xf0]
call fcn.0048faf7
push dword [ebp - 0xe8]
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41166f
push edi
call fcn.0048faf7
push esi
call fcn.0048faf7
mov ebx, dword [ebp - 0x84]
add esp, 8
inc ebx
jmp 0x4114b9
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xdc], eax
mov word [eax], cx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x58]
call fcn.00406bd0
mov ebx, dword [ebp - 0xa4]
lea eax, [ebp - 0xdc]
push 0
push eax
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00404cf0
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x54]
push ebx
call fcn.00404ce0
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x58]
push 0x4b4c04
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00418660
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041ca30
add esp, 0x44
push dword [ebp - 0xf4]
call fcn.0048faf7
lea eax, [ebp - 0x4c]
push eax
call fcn.0048faa4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00403c00
push dword [ebp - 0x70]
mov bl, al
call fcn.0048faf7
add esp, 0x2c
test bl, bl
je 0x4118ee
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41185b
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xb4], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xbc], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xac], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x7c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x8c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x74], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xb4]
mov ebx, dword [ebp - 0xa4]
push eax
movzx eax, byte [ebp + 0x18]
push eax
push 0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0x1e
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
add esp, 0x5c
mov dword [ebp + 0x14], eax
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
push dword [ebp - 0xac]
call fcn.0048faf7
push dword [ebp - 0xbc]
call fcn.0048faf7
push dword [ebp - 0xb4]
call fcn.0048faf7
add esp, 0x18
jmp 0x411861
mov ebx, dword [ebp - 0xa4]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0048faa4
mov dword [ebp - 0xc4], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x20
push eax
movzx eax, byte [ebp + 0x18]
push eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0xa
push dword [ebp + 0x14]
push dword [ebp - 0xb8]
push ebx
call fcn.00403eb0
add esp, 0x4c
push dword [ebp - 0xc4]
call fcn.0048faf7
push dword [ebp - 0x98]
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x88]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
mov ebx, dword [ebp - 0xd8]
add esp, 8
test ebx, ebx
je 0x411964
mov eax, dword [ebp - 0xd4]
cmp ebx, eax
je 0x41193d
mov esi, eax
lea ebx, [ebx]
push dword [ebx]
call fcn.0048faf7
add ebx, 4
add esp, 4
cmp ebx, esi
jne 0x411920
mov ebx, dword [ebp - 0xd8]
mov esi, dword [ebp - 0x90]
push ebx
call fcn.0048f453
add esp, 4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
push dword [ebp - 0xdc]
call fcn.0048faf7
push edi
call fcn.0048faf7
push esi
call fcn.0048faf7
mov ebx, dword [ebp - 0x84]
add esp, 0xc
inc ebx
jmp 0x4114b9
push esi
call fcn.0048faf7
push dword [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.0048faf7
add esp, 8
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
lea ecx, [ebp - 0x60]
inc eax
push ecx
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
call fcn.00410570
add esp, 0x18
test eax, eax
je 0x411480
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x100]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call esi
lea eax, [ebp - 0x64]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp - 0xe0]
push dword [ebp - 0x9c]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x4120ae
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x60]
push eax
push 0
push dword [ebp - 0x64]
call fcn.00410500
add esp, 0xc
cmp eax, 0x103
je 0x4120a9
test eax, eax
jne 0x4120a3
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0xec]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x64]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x41207b
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [eax], cx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0x21
push eax
push ecx
push ecx
push 0x4b4c08
push dword [ebp - 0xec]
call fcn.00410620
add esp, 0x18
test eax, eax
jne 0x412060
mov esi, dword [ebp - 0x94]
push 0x4af9b8
call fcn.0048faa4
push esi
mov dword [ebp - 0x94], eax
call fcn.0048faf7
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0x4b4c20
push dword [ebp - 0xec]
call fcn.00410620
push 0x5c
push dword [ebp - 0xe0]
call fcn.0049130d
mov esi, dword [ebp - 0xcc]
push eax
call fcn.0048faa4
push esi
mov dword [ebp - 0xcc], eax
call fcn.0048faf7
push dword [ebp - 0x60]
mov esi, ebx
call fcn.0048faa4
mov ebx, eax
push esi
mov dword [ebp - 0x6c], ebx
call fcn.0048faf7
add esp, 0x34
cmp byte [ebp + 0x18], 0
jne 0x411b2f
push 0
push SysReAllocString
push 0x4af9f8
lea ecx, [ebp - 0x6c]
call fcn.004021f0
mov ebx, dword [ebp - 0x6c]
lea eax, [ebp - 0xc8]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebx
push dword [ebp - 0x64]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x41206c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xb0]
push eax
push 0
push dword [ebp - 0xc8]
call fcn.00410500
add esp, 0xc
cmp eax, 0x103
je 0x412054
mov ebx, dword [ebp - 0xa4]
lea esp, [esp]
test eax, eax
jne 0x412051
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x104]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0xc8]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x412023
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x4b4c38
push dword [ebp - 0x104]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x412017
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x50], eax
add esp, 4
mov word [eax], cx
mov eax, dword [ebp - 0x94]
cmp word [eax], cx
je 0x411d3c
mov eax, dword [ebp - 0x58]
cmp word [eax], 0x5c
je 0x411d3c
cmp word [eax + 2], 0x3a
je 0x411d3c
push 0x4afa48
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00418660
push 0x4b4c48
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00418660
lea ecx, [ebp - 0xcc]
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0041ca30
push 0x4afa48
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00418660
lea ecx, [ebp - 0x58]
push ecx
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0041ca30
mov esi, edi
push dword [eax]
call fcn.0048faa4
add esp, 0x40
mov edi, eax
mov dword [ebp - 0x100], edi
push esi
call fcn.0048faf7
push dword [ebp - 0xf4]
call fcn.0048faf7
push dword [ebp - 0xc0]
call fcn.0048faf7
push dword [ebp - 0xe8]
call fcn.0048faf7
push dword [ebp - 0xf0]
call fcn.0048faf7
push dword [ebp - 0xe4]
call fcn.0048faf7
add esp, 0x18
lea ecx, [ebp - 0x118]
call fcn.004020f0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x23
push eax
push edi
call fcn.00406bd0
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xfc]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x50]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x50], eax
call fcn.0048faf7
push dword [ebp - 0xfc]
call fcn.0048faf7
add esp, 0x24
lea ecx, [ebp - 0x118]
jmp 0x411db0
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xdc], eax
mov word [eax], cx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0x24
push eax
push dword [ebp - 0x58]
call fcn.00406bd0
push 0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x50]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x50], eax
call fcn.0048faf7
push dword [ebp - 0xb8]
call fcn.0048faf7
add esp, 0x28
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0x22
call fcn.00402130
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x50]
push ebx
call fcn.00404ce0
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x5c]
push 0x4afa48
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00418660
lea ecx, [ebp - 0x60]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041ca30
push 0x4afa48
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00418660
lea ecx, [ebp - 0xb0]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041ca30
mov esi, dword [ebp - 0x68]
add esp, 0x40
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x68], eax
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00403c00
add esp, 0x38
test al, al
je 0x412008
cmp dword [ebp + 0x14], 0xffffffff
jne 0x411f7a
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x98], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x88], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x90], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x84], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x78], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x9c], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x2a
push eax
movzx eax, byte [ebp + 0x18]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x5c]
push eax
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
add esp, 0x5c
mov dword [ebp + 0x14], eax
push dword [ebp - 0x9c]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
push dword [ebp - 0x98]
call fcn.0048faf7
add esp, 0x18
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xb4], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0xc4], eax
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0x2c
push eax
movzx eax, byte [ebp + 0x18]
push eax
push dword [ebp - 0xf8]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x108]
push ebx
call fcn.00403eb0
add esp, 0x4c
push dword [ebp - 0xc4]
call fcn.0048faf7
push dword [ebp - 0xb4]
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x50]
mov byte [ebp - 4], 0x21
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x104]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xbc]
lea eax, [ebp - 0xb0]
push eax
inc esi
push esi
push dword [ebp - 0xc8]
mov dword [ebp - 0xbc], esi
call fcn.00410500
add esp, 0xc
cmp eax, 0x103
jne 0x411b90
mov ebx, dword [ebp - 0x6c]
push dword [ebp - 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x54]
mov byte [ebp - 4], 0xb
call fcn.0048faf7
add esp, 4
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0x60]
push eax
inc esi
push esi
push dword [ebp - 0x64]
mov dword [ebp - 0xac], esi
call fcn.00410500
add esp, 0xc
cmp eax, 0x103
jne 0x411a30
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call esi
push dword [ebp - 0xa0]
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0xa8]
call fcn.0048faf7
push dword [ebp - 0x80]
call fcn.0048faf7
push dword [ebp - 0x94]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0xcc]
call fcn.0048faf7
push dword [ebp - 0xb0]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x30
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.0048fc6c
mov esp, ebp
pop ebp
ret