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

Disassembly:
push 0xffffffffffffffff
push 0x475997
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4995d0]
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.00458440
add esp, 0xc
push 0x206
lea eax, [esp + 0x2a]
xor edx, edx
push ebp
push eax
mov word [esp + 0x30], dx
call fcn.00458440
add esp, 0xc
push 0x206
lea edx, [esp + 0x43a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x440], cx
call fcn.00458440
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 0x480694
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.0045456e
lea eax, [esp + 0x30]
add esp, 0xc
push eax
call fcn.00454fd5
add esp, 4
push 0x4806a0
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.0045456e
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.00454fd5
add esp, 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x438]
push 0x104
push ecx
call fcn.004544ff
add esp, 0xc
push 0x4806b8
lea ecx, [esp + 0x18]
call fcn.0040a4d0
mov esi, eax
push 0x4806c4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64c], 1
call fcn.0040a4d0
mov edi, eax
mov bl, 2
mov byte [esp + 0x648], bl
call fcn.004133b0
push eax
lea edx, [esp + 0x24]
push edi
push edx
call fcn.00408ae0
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x654], 3
call fcn.00408a20
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x438]
push 0x104
push ecx
call fcn.0045456e
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 0x403bef
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 0x403c16
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 0x403c3e
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 0x403c66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0x482c64
lea ecx, [esp + 0x22c]
push ecx
mov byte [esp + 0x64c], 4
call fcn.0041a410
push eax
lea eax, [esp + 0x438]
call fcn.0041a710
mov byte [esp + 0x648], 0
test eax, eax
je 0x403ca3
lea ebp, [esp + 0x434]
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.004546ac
push eax
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.0045456e
add esp, 0x14
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00454d25
add esp, 8
test eax, eax
je 0x403cf3
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [0x4a2600]
shr edx, 0xb
test dl, 1
je 0x403d0f
push 1
lea esi, [esp + 0x28]
call fcn.004072d0
add esp, 4
call fcn.004130a0
push eax
call fcn.00413030
mov ecx, ebp
lea esi, [esp + 0x28]
mov ebx, eax
call fcn.00418a40
push ebp
call fcn.004130a0
mov ebx, eax
call fcn.00413030
mov edi, eax
call fcn.00418f00
push 0x480708
lea ecx, [esp + 0x1c]
call fcn.0040a4d0
mov esi, eax
mov byte [esp + 0x648], 5
call fcn.00413030
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00408ae0
add esp, 0xc
mov byte [esp + 0x648], 6
mov eax, dword [eax]
push 0
mov ebx, 0x480628
lea esi, [esp + 0x28]
mov edi, eax
call fcn.00418f00
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 0x403dab
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 0x403dd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4a2600]
shr ecx, 7
test cl, 1
je 0x403e02
call fcn.00401310
test al, al
jne 0x403e02
push ebp
call fcn.004130a0
mov ebx, eax
call fcn.00413030
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.00418c90
mov edx, dword [0x4a2600]
shr edx, 3
test dl, 1
je 0x403e19
lea ecx, [esp + 0x24]
call fcn.00406600
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.004541a5
add esp, 0x638
ret