Function at 0x1003dd9
Capabilities:
Create directory
Get common file path
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x100a078]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x628], eax
mov edx, 0x81
xor eax, eax
mov word [ebp - 0x414], bx
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x20c], bx
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x624], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x630], ebx
je 0x1003e4a
mov eax, dword [esi]
mov dword [ebp - 0x634], eax
mov eax, dword [ebp - 0x628]
cmp eax, ebx
je 0x1003e56
mov dword [eax], ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
mov dword [ebp - 0x624], eax
je 0x100401f
cmp dword [0x100a6bc], ebx
je 0x1003e92
push 0x101
mov word [ebp - 0x40e], bx
push 0x1001c54
jmp 0x1003e9c
mov ecx, edi
sub ecx, eax
push ecx
push 0x1001710
lea eax, [ebp - 0x414]
push eax
call fcn.0100552a
and word [ebp - 0x20c], 0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x100170c
push esi
push 0x1001c38
mov word [ebp - 0x20e], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10016e8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1003f02
lea eax, [ebp - 0x20c]
push 0x1001c30
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x1003f3d
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001bfc
push 0x1001be4
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1003f44
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1003f3d
and dword [eax], 0
xor eax, eax
jmp 0x1004ed0
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001bc8
push 0x1001be4
call ebx
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push 0x1001bc0
push eax
call fcn.0100547c
pop ecx
test eax, eax
mov eax, dword [0x100a6bc]
pop ecx
je 0x1003f92
test eax, eax
je 0x1004062
test eax, eax
mov dword [ebp - 0x630], 1
je 0x1004062
cmp dword [ebp + 8], 0
je 0x1004062
lea eax, [ebp - 0x62c]
push eax
push 3
push 0
push 0x1001ba4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0x624], eax
jne 0x1004007
push 4
lea eax, [ebp - 0x624]
push eax
push 4
push 0
push 0x1001b90
push dword [ebp - 0x62c]
mov dword [ebp - 0x624], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
mov dword [ebp - 0x624], eax
jne 0x100402a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004ed0
and word [ebp - 0x616], 0
push 0x101
lea eax, [ebp - 0x61c]
push 0x1001b80
push eax
call fcn.0100552a
and word [ebp - 0x416], 0
add esp, 0xc
push 0
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1001b78
push 0x1001b60
push 0x1001be4
mov dword [ebp - 0x62c], 1
call ebx
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push 0x1001c30
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x10040b7
and dword [ebp - 0x62c], eax
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001b44
push 0x10016e8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10040f5
cmp dword [0x100a6bc], 0
jne 0x10040f5
and dword [ebp - 0x62c], 0
cmp dword [ebp - 0x62c], 0
je 0x10041ce
cmp dword [ebp + 8], 0
je 0x10041b1
push dword [ebp - 0x634]
call fcn.01003b21
test eax, eax
je 0x1004188
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x1001b44
push 0x10016e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], eax
jne 0x100414f
cmp dword [0x100a6bc], 0
je 0x1004171
lea eax, [ebp - 0x414]
push eax
push 0x1001bc0
push 0x1001b60
push 0x1001be4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
jne 0x10041ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10041c1
push dword [ebp - 0x634]
call fcn.01002be1
test eax, eax
mov dword [ebp - 0x620], 0x4c7
jne 0x1004ea1
mov dword [0x100a6c0], 1
jmp 0x10041c1
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x10041ce
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001b28
push 0x1001b14
call ebx
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x100428f
cmp dword [ebp + 8], eax
je 0x1004272
push dword [ebp - 0x634]
and word [ebp - 0x20c], ax
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01003a61
test eax, eax
je 0x1004266
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001b28
push 0x1001b14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100428f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004282
mov dword [ebp - 0x620], 0x4c7
jmp 0x1004282
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100428f
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001af8
push 0x1001adc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10042d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x100434a
cmp dword [ebp + 8], 0
je 0x100432d
push dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01003817
test eax, eax
je 0x1004321
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1001af8
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100434a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x100433d
mov dword [ebp - 0x620], 0x4c7
jmp 0x100433d
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100436c
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
cmp dword [ebp + 8], 0
je 0x100436c
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x1001ab4
push 0x10016e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001a98
push 0x1001be4
call ebx
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x20c]
push 0x1001a78
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x10043fe
cmp dword [ebp + 8], 0
je 0x10043e1
lea eax, [ebp - 0x414]
push eax
push 0x1001a78
push 0x1001a98
push 0x1001be4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x10043fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10043f1
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x10043fe
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001a54
push 0x10016e8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004443
lea eax, [ebp - 0x20c]
push 0x1001bc0
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x1004494
cmp dword [ebp + 8], 0
je 0x1004477
lea eax, [ebp - 0x414]
push eax
push 0x1001bc0
push 0x1001a54
push 0x10016e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004494
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004487
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004494
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001a34
push 0x10016e8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10044d9
lea eax, [ebp - 0x20c]
push 0x1001b40
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x100452a
cmp dword [ebp + 8], 0
je 0x100450d
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x1001a34
push 0x10016e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100452a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x100451d
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100452a
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001a1c
push 0x10016e8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x100456f
lea eax, [ebp - 0x20c]
push 0x1001b40
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x10045c0
cmp dword [ebp + 8], 0
je 0x10045a3
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x1001a1c
push 0x10016e8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x10045c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10045b3
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x10045c0
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10019f8
push 0x10019e0
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004605
lea eax, [ebp - 0x20c]
push 0x1001b40
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x1004656
cmp dword [ebp + 8], 0
je 0x1004639
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x10019f8
push 0x10019e0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004656
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004649
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004656
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10019cc
push 0x1001b14
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004697
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x10046e8
cmp dword [ebp + 8], 0
je 0x10046cb
lea eax, [ebp - 0x414]
push eax
push 0x10019b8
push 0x10019cc
push 0x1001b14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x10046e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10046db
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x10046e8
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10019a8
push 0x1001b14
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004729
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x100477a
cmp dword [ebp + 8], 0
je 0x100475d
lea eax, [ebp - 0x414]
push eax
push 0x1001984
push 0x10019a8
push 0x1001b14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100477a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x100476d
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100477a
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001968
push 0x1001b14
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10047bb
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x100480c
cmp dword [ebp + 8], 0
je 0x10047ef
lea eax, [ebp - 0x414]
push eax
push 0x10015c8
push 0x1001968
push 0x1001b14
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100480c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10047ff
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100480c
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001954
push 0x1001adc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x100484d
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x100489e
cmp dword [ebp + 8], 0
je 0x1004881
lea eax, [ebp - 0x414]
push eax
push 0x100194c
push 0x1001954
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100489e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004891
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100489e
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
cmp dword [ebp - 0x630], 0
jne 0x10048b4
cmp dword [0x100a6bc], 0
je 0x10049f6
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x100192c
push 0x1001adc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10048f9
lea eax, [ebp - 0x20c]
push 0x1001b40
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x100494a
cmp dword [ebp + 8], 0
je 0x100492d
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x100192c
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x100494a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x100493d
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x100494a
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
cmp dword [ebp - 0x630], 0
jne 0x1004960
cmp dword [0x100a6bc], 0
je 0x10049f6
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x100190c
push 0x1001adc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x10049a5
lea eax, [ebp - 0x20c]
push 0x1001b40
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
je 0x10049f6
cmp dword [ebp + 8], 0
je 0x10049d9
lea eax, [ebp - 0x414]
push eax
push 0x1001b40
push 0x100190c
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x10049f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x10049e9
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x10049f6
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10018f8
push 0x10018cc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004a37
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004a88
cmp dword [ebp + 8], 0
je 0x1004a6b
lea eax, [ebp - 0x414]
push eax
push 0x10018b8
push 0x10018f8
push 0x10018cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004a7b
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004a88
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10018a4
push 0x10018cc
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004ac9
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004b1a
cmp dword [ebp + 8], 0
je 0x1004afd
lea eax, [ebp - 0x414]
push eax
push 0x10018a0
push 0x10018a4
push 0x10018cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004b1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004b0d
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004b1a
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001888
push 0x1001878
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004b5b
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004bac
cmp dword [ebp + 8], 0
je 0x1004b8f
lea eax, [ebp - 0x414]
push eax
push 0x1001870
push 0x1001888
push 0x1001878
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004bac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004b9f
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004bac
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001858
push 0x1001878
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004bed
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004c3e
cmp dword [ebp + 8], 0
je 0x1004c21
lea eax, [ebp - 0x414]
push eax
push 0x1001850
push 0x1001858
push 0x1001878
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004c31
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004c3e
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1001838
push 0x1001878
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004c7f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004cd0
cmp dword [ebp + 8], 0
je 0x1004cb3
lea eax, [ebp - 0x414]
push eax
push 0x1001830
push 0x1001838
push 0x1001878
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004cd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004cc3
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004cd0
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x100181c
push 0x1001878
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004d11
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004d62
cmp dword [ebp + 8], 0
je 0x1004d45
lea eax, [ebp - 0x414]
push eax
push 0x1001814
push 0x100181c
push 0x1001878
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004d55
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004d62
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10017f8
push 0x10017d8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004da7
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004e35
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x10017c0
push 0x10017d8
call ebx
test eax, eax
mov dword [ebp - 0x624], eax
je 0x1004de8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100547c
test eax, eax
pop ecx
pop ecx
jne 0x1004e35
cmp dword [ebp + 8], 0
je 0x1004e1c
lea eax, [ebp - 0x414]
push eax
push 0x10017ac
push 0x10017f8
push 0x10017d8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004e2c
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004e35
mov dword [eax], 1
cmp dword [ebp - 0x620], 0
jne 0x1004ea1
and word [ebp - 0x20c], 0
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x1001794
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
mov dword [ebp - 0x624], eax
jne 0x1004ea1
cmp dword [ebp + 8], eax
je 0x1004e91
lea eax, [ebp - 0x414]
push eax
push 0x1001790
push 0x1001780
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x1004ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x620], eax
jmp 0x1004ea1
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x1004eca
mov dword [eax], 1
cmp dword [ebp + 8], 0
je 0x1004eca
cmp dword [ebp - 0x620], 0
jne 0x1004eca
call fcn.01002ea6
push 0x3ed
call fcn.010037be
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x620]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100514a
leave
ret 0xc