Function at 0x403ba0
Capabilities:
Access peb ldr_data
Copy file
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47b2c7
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x4a05d0]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a05d0]
xor eax, esp
push eax
lea eax, [esp + 0x640]
mov dword fs:[0], eax
xor ebp, ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x206
lea ecx, [esp + 0x232]
xor eax, eax
push ebp
mov dword [esp + 0x650], ebp
push ecx
mov word [esp + 0x238], ax
call fcn.0045db90
add esp, 0xc
push 0x206
lea eax, [esp + 0x2a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x30], dx
call fcn.0045db90
add esp, 0xc
push 0x206
lea edx, [esp + 0x43a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x440], cx
call fcn.0045db90
add esp, 0xc
push 0x104
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push 0x23
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x485734
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00459b8e
lea eax, [esp + 0x30]
add esp, 0xc
push eax
call fcn.0045a5f5
add esp, 4
push str.GameLogin
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00459b8e
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.0045a5f5
add esp, 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x438]
push 0x104
push ecx
call fcn.00459b1f
add esp, 0xc
push str..ico
lea ecx, [esp + 0x18]
call fcn.0040a630
mov esi, eax
push 0x485764
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64c], 1
call fcn.0040a630
mov edi, eax
mov bl, 2
mov byte [esp + 0x648], bl
call fcn.00413560
push eax
lea edx, [esp + 0x24]
push edi
push edx
call fcn.00408c50
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x654], 3
call fcn.00408b90
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x438]
push 0x104
push ecx
call fcn.00459b8e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x648], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x648], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x648], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], vtable.CIcons.0
lea ecx, [esp + 0x22c]
push ecx
mov byte [esp + 0x64c], 4
call fcn.0041a6b0
push eax
lea eax, [esp + 0x438]
call fcn.0041a9b0
mov byte [esp + 0x648], 0
test eax, eax
je 0x403e13
lea ebp, [esp + 0x434]
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.00459ccc
push eax
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.00459b8e
add esp, 0x14
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0045a345
add esp, 8
test eax, eax
je 0x403e63
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [0x4a9600]
shr edx, 0xb
test dl, 1
je 0x403e7f
push 1
lea esi, [esp + 0x28]
call fcn.00407440
add esp, 4
call fcn.00413250
push eax
call fcn.004131e0
mov ecx, ebp
lea esi, [esp + 0x28]
mov ebx, eax
call fcn.00418cf0
push ebp
call fcn.00413250
mov ebx, eax
call fcn.004131e0
mov edi, eax
call fcn.004191b0
push 0x4857a8
lea ecx, [esp + 0x1c]
call fcn.0040a630
mov esi, eax
mov byte [esp + 0x648], 5
call fcn.004131e0
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00408c50
add esp, 0xc
mov byte [esp + 0x648], 6
mov eax, dword [eax]
push 0
mov ebx, str._uninst
lea esi, [esp + 0x28]
mov edi, eax
call fcn.004191b0
mov byte [esp + 0x648], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x648], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4a9600]
shr ecx, 7
test cl, 1
je 0x403f72
call fcn.00401310
test al, al
jne 0x403f72
push ebp
call fcn.00413250
mov ebx, eax
call fcn.004131e0
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.00418f40
mov edx, dword [0x4a9600]
shr edx, 3
test dl, 1
je 0x403f89
lea ecx, [esp + 0x24]
call fcn.00406770
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x640]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.004597c7
add esp, 0x638
ret