Function at 0x42dae0
Capabilities:
Create directory
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x477372
mov eax, dword fs:[0]
push eax
sub esp, 0x4a0
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0800]
xor eax, esp
push eax
lea eax, [esp + 0x4b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c4]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call fcn.00446493
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42db4c
push 0x80004005
call fcn.00402750
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4bc], ebx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
mov byte [esp + 0x4bc], 1
push str.BINPATH
lea ecx, [esp + 0x20]
mov byte [esi + 0x3cc], bl
call fcn.00402930
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x24]
mov byte [esp + 0x4c0], 2
call fcn.0040f860
mov byte [esp + 0x1f], al
mov byte [esp + 0x4c0], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42dbd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], bl
je 0x42e0f2
mov ebp, dword [esp + 0x20]
mov eax, ebp
lea ecx, [eax + 2]
jmp 0x42dbf0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x42dbf0
sub eax, ecx
sar eax, 1
push eax
add esi, 0x370
push ebp
call fcn.00401750
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00401ce0
push 3
push 0x488178
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c4], 3
call fcn.0040d6f0
push 1
push 0x4878c4
lea ecx, [esp + 0x50]
call fcn.0040d6f0
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x50]
call fcn.00401ce0
push ebx
push 0x26
lea ecx, [esp + 0x2ac]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4878c4
lea edx, [esp + 0x2a8]
push edx
call edi
call fcn.0040fb10
add eax, 0xac0
push eax
lea eax, [esp + 0x2a8]
push eax
call edi
push 0x4878c4
lea ecx, [esp + 0x2a8]
push ecx
call edi
mov ecx, ebp
lea eax, [esp + 0x2a4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dcdd
cmp dx, bx
je 0x42dcd9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dcdd
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x42dcb7
xor eax, eax
jmp 0x42dce2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x42e087
push ebx
push 0x1a
lea edx, [esp + 0xa4]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4878c4
lea eax, [esp + 0xa0]
push eax
call edi
push str.Poker_
lea ecx, [esp + 0xa0]
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
lea edx, [esp + 0xa0]
push edx
call ebp
test eax, eax
jne 0x42ddad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42ddad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.checkToRelocateInstallationPath___POKER_directory_creation_failed__Error_code_from_system___d
push eax
call fcn.0040a810
mov edi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov edx, edi
call fcn.00408d90
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x42dd74
lea eax, [esp + 0x30]
push eax
push ebx
push 0x54a
push str.WebUpdaterDlg::checkToRelocateInstallationPath
call fcn.004347c0
add esp, 0x10
lea esi, [esp + 0x48]
call fcn.004013a0
lea esi, [esp + 0x2c]
call fcn.004013a0
mov dword [esp + 0x4bc], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x42e067
call fcn.0040fb10
add eax, 0xac0
push eax
lea ecx, [esp + 0xa0]
push ecx
call edi
push 0x4878c4
lea edx, [esp + 0xa0]
push edx
call edi
push ebx
lea eax, [esp + 0xa0]
push eax
call ebp
test eax, eax
jne 0x42de3a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x42de3a
call edi
push eax
lea ecx, [esp + 0x18]
push str.checkToRelocateInstallationPath___POKERBRAND_NAME_directory_creation_failed__Error_code_from_system___d
push ecx
call fcn.0040a810
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x18]
call fcn.00408d90
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x42de21
lea eax, [esp + 0x30]
push eax
push ebx
push 0x541
push str.WebUpdaterDlg::checkToRelocateInstallationPath
call fcn.004347c0
add esp, 0x10
jmp 0x42df2f
lea edx, [esp + 0x9c]
lea eax, [esp + 0x80]
call fcn.00401360
mov byte [esp + 0x4bc], 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x88]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
call fcn.00401ce0
push 3
push 0x488178
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4c4], 5
call fcn.0040d6f0
push 1
push 0x4878c4
lea ecx, [esp + 0x6c]
call fcn.0040d6f0
mov eax, dword [esp + 0x68]
mov edi, 8
cmp dword [esp + 0x7c], edi
jae 0x42deba
lea eax, [esp + 0x68]
push ebx
push eax
call ebp
test eax, eax
jne 0x42df51
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x42df51
call ebp
push eax
lea eax, [esp + 0x18]
push str.checkToRelocateInstallationPath___POKERBRAND_NAMEBIN_directory_creation_failed__Error_code_from_system___d
push eax
call fcn.0040a810
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call fcn.00408d90
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x42df06
lea eax, [esp + 0x30]
push eax
push ebx
push 0x539
push str.WebUpdaterDlg::checkToRelocateInstallationPath
call fcn.004347c0
add esp, 0x10
lea esi, [esp + 0x64]
call fcn.004013a0
lea esi, [esp + 0x80]
call fcn.004013a0
lea esi, [esp + 0x48]
call fcn.004013a0
lea esi, [esp + 0x2c]
call fcn.004013a0
lea ecx, [esp + 0x14]
call fcn.00402910
mov al, 1
jmp 0x42e15d
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x9c]
mov byte [edx + 0x3cc], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42df66
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.00401750
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.00401ce0
push 3
push 0x488178
lea ecx, [esp + 0x6c]
call fcn.0040d6f0
push 1
push 0x4878c4
lea ecx, [esp + 0x6c]
call fcn.0040d6f0
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
call fcn.00401ce0
cmp dword [esp + 0x7c], edi
jb 0x42dfd4
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00438751
add esp, 4
cmp dword [esp + 0x98], edi
mov esi, 7
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x42dfff
mov edx, dword [esp + 0x84]
push edx
call fcn.00438751
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
jb 0x42e028
mov eax, dword [esp + 0x4c]
push eax
call fcn.00438751
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x42e048
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00438751
add esp, 4
mov dword [esp + 0x4bc], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e080
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x42e15d
mov edi, 8
cmp dword [esp + 0x60], edi
jb 0x42e09f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00438751
add esp, 4
cmp dword [esp + 0x44], edi
mov esi, 7
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x42e0c4
mov edx, dword [esp + 0x30]
push edx
call fcn.00438751
add esp, 4
mov dword [esp + 0x4bc], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42e074
push str.BINPATH
push str.Failed_to_get_REGISTRY_BINPATH_KEY_:__s
push ebx
push 0x557
push str.WebUpdaterDlg::checkToRelocateInstallationPath
call fcn.004347c0
add esp, 0x14
cmp dword [esp + 0x44], 8
jb 0x42e123
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00438751
add esp, 4
lea eax, [ebp - 0x10]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x4bc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e15b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.004552e7
add esp, 0x4ac
ret 4