Function at 0x4195b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x188], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x168], xmm0
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], 0
push 0x103
lea eax, [ebp - 0x14f]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [ebp - 0x150], 0
call fcn.004ba6a0
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jg 0x41967c
test eax, eax
je 0x41967c
lea ecx, [ebp - 0x150]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419660
sub ecx, edx
lea eax, [ebp - 0x150]
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.004049b0
push 0xe
push str.sdk_config.ini
lea ecx, [ebp - 0x168]
call fcn.00404850
xorps xmm0, xmm0
mov dword [ebp - 0x170], 0
movups xmmword [ebp - 0x180], xmm0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp dword [ebp - 0x154], 0xf
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 1
cmova edx, dword [ebp - 0x168]
mov ecx, edx
mov dword [ebp - 0x194], 0
movups xmmword [ebp - 0x1a4], xmm0
mov dword [ebp - 0x190], 0
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4196f0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1a4]
call fcn.00401bf0
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], eax
lea edi, [esi + 0x1b8]
mov word [ebp - 0x14], ax
xorps xmm0, xmm0
mov byte [ebp - 0x12], al
lea eax, [ebp - 0x18]
push 7
push eax
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.00456370
add esp, 8
test eax, eax
jne 0x41979e
push str.sdk_config.ini
push 0x21
mov byte [ebp - 0x2c], al
xorps xmm0, xmm0
lea eax, [ebp - 0x4c]
push eax
push 0x4ed847
push str.devicekey
push str.Config
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419775
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push eax
mov ecx, edi
call fcn.004049b0
cmp dword [esi + 0x1c8], 0
jne 0x4197ea
push edi
call fcn.00455f60
add esp, 4
jmp 0x4197ea
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
push str._02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x28]
push 0xd
push eax
call fcn.0042aba0
lea ecx, [ebp - 0x28]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4197d5
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.004049b0
mov ecx, dword [ebp - 0x190]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x419828
mov edx, dword [ebp - 0x1a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41981e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419a60
push ecx
push edx
call fcn.004b812d
add esp, 8
lea edi, [esi + 0x1a0]
lea eax, [esi + 0x1d0]
mov dword [ebp - 0x18], edi
push edi
push dword [ebp - 0x184]
mov ecx, eax
mov dword [ebp - 0x18c], eax
call fcn.0043f570
test al, al
jne 0x419859
mov esi, 1
jmp 0x419a0b
sub esp, 0x18
xorps xmm0, xmm0
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.0041dd30
sub esp, 0x18
lea eax, [ebp - 0x168]
mov ecx, esp
push eax
call fcn.0040e140
mov ecx, esi
call fcn.00419a70
test eax, eax
je 0x4198a2
mov esi, 4
jmp 0x419a0b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0043fa20
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test esi, esi
je 0x419975
mov edi, dword [ebp - 0x24]
cmp esi, edi
je 0x41992e
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x419913
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x419909
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419a65
mov eax, edx
push ecx
push eax
call fcn.004b812d
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x4198e0
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x419968
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419a65
push ecx
push esi
call fcn.004b812d
mov edi, dword [ebp - 0x18]
add esp, 8
cmp dword [edi + 0x14], 0xf
jbe 0x41997d
mov edi, dword [edi]
mov esi, dword [ebp - 0x188]
lea eax, [esi + 0x2a0]
push eax
lea eax, [esi + 0x2a4]
push eax
sub esp, 0x18
lea eax, [esi + 0x1b8]
mov ecx, esp
mov dword [ebp - 0x188], esp
push eax
call fcn.0040e140
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x168]
mov ecx, esp
push eax
call fcn.0040e140
push edi
lea ecx, [esi + 0x1d0]
mov byte [ebp - 4], 1
call fcn.0043e810
cmp eax, 5
jne 0x4199f2
sub esp, 0x18
lea eax, [ebp - 0x168]
mov ecx, esp
push eax
call fcn.0040e140
mov ecx, esi
call fcn.0041bd90
mov esi, dword [esi + 0x2a8]
jmp 0x419a0b
cmp eax, 8
jne 0x4199fc
lea esi, [eax - 6]
jmp 0x419a0b
mov esi, 9
cmp eax, 6
je 0x419a0b
mov esi, 0xc8
mov ecx, dword [ebp - 0x154]
cmp ecx, 0xf
jbe 0x419a41
mov edx, dword [ebp - 0x168]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x419a37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419a6a
push ecx
push edx
call fcn.004b812d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b847a
mov esp, ebp
pop ebp
ret 8
call fcn.004be0cf
call fcn.004be0cf
call fcn.004be0cf
int3