Function at 0x4054f0
Capabilities:
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x425981
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x6e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x74], ax
call fcn.0041a210
add esp, 0xc
lea edx, [esp + 0x68]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x433174]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x68]
shr ecx, 0x10
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x405582
lea edx, [esp + 0x68]
movzx ecx, dx
lea edx, [esp + 0x10]
call fcn.00401f90
jmp 0x4055be
lea eax, [esp + 0x68]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4055be
mov ecx, esi
lea edx, [esp + 0x10]
call fcn.00402150
test eax, eax
je 0x4055be
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x6c]
push ecx
add eax, 2
push eax
push edx
call fcn.00417bf9
push eax
call fcn.00401e70
add esp, 0x14
push str.bibei.exe
push str.bibei.exe
mov dword [esp + 0x48c], ebx
call edi
mov esi, eax
lea edi, [esp + 0x14]
call fcn.004067e0
push 0x42bea8
push 0xa0
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, dword [esp + 0x10]
cmp eax, ebx
je 0x40572e
push edi
call fcn.00411000
add esp, 4
cmp al, bl
je 0x40572e
push 0x206
lea ecx, [esp + 0x276]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x27c], ax
call fcn.0041a210
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x278]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40564c
lea eax, [edi - 0xc]
cmp eax, 0x433164
jmp 0x405737
xor ecx, ecx
lea eax, [esp + 0x270]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405670
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x274]
lea esi, [esp + 0x50]
call fcn.00401670
mov edx, esi
push edx
mov ebx, 0x42bcd4
lea esi, [esp + 0x18]
mov byte [esp + 0x488], 1
call fcn.00401bc0
push eax
mov ebx, 0x42c650
lea esi, [esp + 0x38]
mov byte [esp + 0x48c], 2
call fcn.00401bc0
mov esi, 8
add esp, 8
cmp dword [esp + 0x2c], esi
jb 0x4056db
mov eax, dword [esp + 0x18]
push eax
call fcn.004178bc
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x4056e9
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esp + 0x48], esi
jb 0x405704
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004178bc
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x40572e
mov eax, dword [esp + 0x50]
push eax
call fcn.004178bc
add esp, 4
lea ecx, [edi - 0xc]
cmp ecx, 0x433164
je 0x405750
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405750
push esi
call fcn.00417bee
add esp, 4
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.004178c7
add esp, 0x478
ret