Function at 0x46e7d0
Capabilities:
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4e6c69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d8
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x416
mov dword [esp + 0x60], edi
call fcn.00445f00
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [esp + 0x58], eax
je 0x46e80f
mov word [eax], si
push eax
push 0x208
mov dword [esp + 0x4f8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 2
mov dword [esp + 0x4c], esi
call fcn.00445f00
add esp, 4
cmp eax, esi
mov dword [esp + 0x48], eax
je 0x46e83b
mov word [eax], si
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
lea eax, [esp + 0x4f8]
push eax
call fcn.0043f2e0
mov ecx, dword [esp + 0x4fc]
push 4
push ecx
push str._fix
call fcn.004403f0
add esp, 0x10
test al, al
mov byte [esp + 0x37], al
je 0x46e887
add dword [esp + 0x4f8], 8
lea edx, [esp + 0x4f8]
push edx
call fcn.0043f2e0
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x3c], eax
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x54], eax
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x44], eax
push 0x4ebd38
call ebx
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
push eax
call fcn.00445f00
mov ecx, esi
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov esi, 0x4ebd38
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x44], ebp
mov byte [esp + 0x4f4], 5
mov dword [esp + 0x3c], 0
mov byte [esp + 0x1f], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2a], 0
push 4
mov eax, dword [esp + 0x500]
push eax
push str.raw
call fcn.004403f0
add esp, 0x10
test al, al
je 0x46e9bc
mov esi, dword [esp + 0x4f8]
lea ecx, [esp + 0x4f8]
add esi, 8
push ecx
mov byte [esp + 0x2a], 1
mov dword [esp + 0x4fc], esi
call fcn.0043f2e0
add esp, 4
push 1
push 0x2c
lea edx, [esp + 0x500]
push edx
lea ecx, [esp + 0x54]
call fcn.0045a420
push 0
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.00449370
mov ecx, dword [esp + 0x68]
add esp, 0xc
push 0
lea edx, [esp + 0x40]
push edx
call fcn.004152c8
mov edi, dword [esp + 0x3c]
cmp word [edi], 0
jne 0x46ea90
test ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x46ea17
mov eax, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46ea2e
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46ea45
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push eax
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46ea6a
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x58]
test eax, eax
mov dword [esp + 0x48], 0
je 0x46f5ea
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
jmp 0x46f5e8
mov eax, dword [esp + 0x4f8]
cmp word [eax], 0x2c
mov ebp, 2
jne 0x46eaab
add eax, ebp
mov dword [esp + 0x4f8], eax
lea ecx, [esp + 0x4f8]
push ecx
call fcn.0043f2e0
mov ecx, dword [esp + 0x4fc]
mov ax, word [ecx]
add esp, 4
test ax, ax
je 0x46eb00
lea ebx, [ebx]
cmp ax, 0x26
jne 0x46eadd
mov byte [esp + 0x1b], 1
jmp 0x46eae8
cmp ax, 0x2a
jne 0x46eaf3
mov byte [esp + 0x27], 1
mov ax, word [ecx + ebp]
add ecx, ebp
test ax, ax
jne 0x46ead0
mov dword [esp + 0x4f8], ecx
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, 9
jb 0x46eb0f
cmp ax, 0xd
jbe 0x46eb15
cmp ax, 0x20
jne 0x46eb19
add ecx, ebp
jmp 0x46eb00
push 1
push 0x2c
lea edx, [esp + 0x500]
mov dword [esp + 0x500], ecx
push edx
lea ecx, [esp + 0x54]
call fcn.0045a420
xor edi, edi
push edi
lea ecx, [esp + 0x58]
push ecx
push eax
call fcn.00449370
mov edx, dword [esp + 0x60]
push edx
call fcn.0042063d
mov esi, eax
mov eax, dword [esp + 0x508]
add esp, 0x10
cmp word [eax], 0x2c
jne 0x46ec1b
push 1
push 0x2c
lea ecx, [esp + 0x500]
add eax, ebp
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x504], eax
call fcn.0045a420
push edi
lea edx, [esp + 0x48]
push edx
push eax
call fcn.00449370
mov eax, dword [esp + 0x504]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x46ec1b
push 1
push 0x2c
lea ecx, [esp + 0x500]
add eax, ebp
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x504], eax
call fcn.0045a420
push edi
lea edx, [esp + 0x44]
push edx
push eax
call fcn.00449370
mov eax, dword [esp + 0x504]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x46ec1b
push 1
mov edx, eax
push 0x2c
lea ecx, [esp + 0x500]
add edx, ebp
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x504], edx
call fcn.0045a420
push 0x2c
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00449690
add esp, 0xc
cmp eax, edi
jle 0x46ec1b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
xor edi, edi
xor ebp, ebp
test esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
je 0x46ec5a
push esi
call ebx
lea edi, [eax + eax + 2]
lea ecx, [edi + 2]
push ecx
call fcn.00445f00
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov ebp, eax
cmp word [ebp], 0
je 0x46ecb8
mov al, byte [esp + 0x37]
test al, al
je 0x46ecb6
push ebp
call ebx
cmp word [ebp], 0
mov esi, eax
je 0x46ecb6
cmp word [ebp + 2], 0x3a
jne 0x46ecb6
cmp word [ebp + 4], 0x5c
jne 0x46ecb6
cmp word [ebp + 6], 0x2e
je 0x46ecb6
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x2c]
call fcn.004462b0
mov ebp, dword [esp + 0x28]
lea ecx, [esi + esi + 4]
push ecx
lea edx, [ebp + 4]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004aee50
add esp, 0xc
mov word [ebp + 6], 0x2e
mov edi, ebp
push 2
call fcn.00445f00
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x46ecd2
mov word [ebp], 0
mov eax, dword [esp + 0x4fc]
test eax, eax
je 0x46eced
mov cl, byte [eax + 0x69]
test cl, cl
jne 0x46eced
mov esi, dword [eax + 0x18]
mov dword [esp + 0x10], esi
jmp 0x46ed0d
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x519078]
push 0x5194ec
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x27]
test al, al
jne 0x46f41e
movzx ecx, word [0x51e010]
push 0x4f5eec
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 2]
mov dword [esp + 0x2c], eax
lea eax, [edi + edi + 4]
push 0
call fcn.00445f60
mov esi, eax
add esp, 4
test esi, esi
je 0x46ed59
mov word [esi + edi*2 + 2], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edi
push esi
push edx
push 0x4f5eec
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jge 0x46ed7a
xor edi, edi
lea eax, [edi + edi + 4]
push esi
mov word [esi + edi*2], 0
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x46ed9c
mov word [eax + edi*2 + 2], 0
mov esi, dword [esp + 0x40]
xor eax, eax
mov ax, word [esi]
test ax, ax
mov byte [esp + 0x4f0], 8
mov dword [esp + 0x2c], eax
je 0x46ee69
push 0x7c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea ecx, [esp + 0x20]
push esi
je 0x46ee0b
call fcn.004574e0
push 0x4f5ee8
lea ecx, [esp + 0x24]
call fcn.004462e0
mov eax, dword [esp + 0x20]
cmp word [eax], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
je 0x46ee69
cmp word [eax], 0x7c
jne 0x46ee00
mov word [eax], 0
add eax, 2
cmp word [eax], 0
jne 0x46edf5
jmp 0x46ee69
call fcn.004462e0
mov edi, dword [esp + 0x20]
push edi
call ebx
lea esi, [eax + eax + 6]
mov dword [esp + 0x14], eax
lea eax, [esi + esi + 2]
push edi
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x46ee3a
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx*2 + 2]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov word [eax + ecx*4 + 4], 0
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x28]
push edx
call ebx
mov edi, eax
lea esi, [edi + edi + 0x10]
cmp esi, 0x3f7a0
jg 0x46ee83
mov esi, 0x3f7a2
mov ecx, dword [esp + 0x28]
lea eax, [esi + esi + 0x12]
push ecx
call fcn.00445f60
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x28], edx
je 0x46eea5
mov word [edx + esi*2 + 0x10], 0
mov eax, esi
sub eax, edi
lea ecx, [eax + eax + 0x10]
xor eax, eax
lea edi, [edx + edi*2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x80], 0x58
mov ecx, 0x14
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov cx, word [eax]
neg cx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xa0], esi
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
or eax, edx
test eax, 0x40000
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], eax
jne 0x46ef5d
or eax, 0x200000
mov dword [esp + 0xb4], eax
call fcn.00440530
mov al, byte [esp + 0x1b]
test al, al
je 0x46ef7a
lea ecx, [esp + 0x80]
push ecx
call dword [0x5192a8]
jmp 0x46ef88
lea edx, [esp + 0x80]
push edx
call dword [0x5192a4]
cmp eax, 1
je 0x46efb8
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x4f0], 7
je 0x46f4d0
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46f4d0
mov eax, dword [esp + 0xb4]
test ah, 2
jne 0x46efde
mov ecx, dword [esp + 0x9c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004574e0
mov ebp, dword [esp + 0x1c]
jmp 0x46f35d
test eax, 0x80000
je 0x46f14a
mov eax, dword [esp + 0x9c]
push eax
mov dword [esp + 0x18], eax
mov esi, eax
call ebx
cmp word [esi + eax*2 + 2], 0
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x38], eax
jne 0x46f023
mov edx, dword [esp + 0x9c]
push edx
lea ecx, [esp + 0x20]
call fcn.004574e0
mov ebp, dword [esp + 0x1c]
jmp 0x46f35d
cmp word [ebp], 0
je 0x46f05c
push ebp
call ebx
push 0x4ef484
mov esi, eax
call ebx
mov edi, eax
inc edi
lea eax, [edi + esi]
shl eax, 1
push ebp
call fcn.00445f60
mov ebp, eax
lea eax, [edi + edi]
push eax
lea ecx, [ebp + esi*2]
push 0x4ef484
push ecx
call fcn.004aee50
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f09c
xor esi, esi
test ebp, ebp
je 0x46f06f
push ebp
call ebx
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call ebx
mov edi, eax
inc edi
lea eax, [edi + esi]
shl eax, 1
push ebp
call fcn.00445f60
mov ecx, dword [esp + 0x18]
mov ebp, eax
lea eax, [edi + edi]
push eax
push ecx
lea edx, [ebp + esi*2]
push edx
call fcn.004aee50
add esp, 0x10
test ebp, ebp
mov dword [esp + 0x10], 0
je 0x46f0af
push ebp
call ebx
mov dword [esp + 0x10], eax
push 0x4ec34c
call ebx
mov esi, eax
mov eax, dword [esp + 0x10]
inc esi
add eax, esi
shl eax, 1
push ebp
call fcn.00445f60
mov edx, dword [esp + 0x14]
lea ecx, [esi + esi]
push ecx
mov edi, eax
lea eax, [edi + edx*2]
push 0x4ec34c
push eax
call fcn.004aee50
add esp, 0x10
test edi, edi
mov dword [esp + 0x10], 0
je 0x46f0f5
push edi
call ebx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x38]
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov esi, eax
inc esi
lea eax, [esi + edx]
shl eax, 1
push edi
call fcn.00445f60
mov ecx, dword [esp + 0x14]
mov ebp, eax
lea eax, [esi + esi]
mov esi, dword [esp + 0x3c]
push eax
lea edx, [ebp + ecx*2]
push esi
push edx
call fcn.004aee50
add esp, 0x10
push esi
call ebx
cmp word [esi + eax*2 + 2], 0
lea eax, [esi + eax*2 + 2]
mov dword [esp + 0x38], eax
jne 0x46f023
mov dword [esp + 0x1c], ebp
jmp 0x46f35d
mov esi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
call fcn.004226c4
mov eax, dword [esp + 0x14]
sub eax, esi
add esp, 4
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.004463d0
push 0x4ec34c
lea ecx, [esp + 0x18]
call fcn.004462e0
lea ecx, [esp + 0x10]
push ecx
call fcn.0043f2e0
mov edx, dword [esp + 0x14]
add esp, 4
cmp word [edx], 0
jne 0x46f1c0
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x20]
call fcn.004574e0
mov ebp, dword [esp + 0x1c]
jmp 0x46f343
cmp word [ebp], 0
je 0x46f1ff
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call esi
push 0x4ef484
mov edi, eax
call esi
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00445f60
lea ecx, [esi + esi]
push ecx
mov ebp, eax
lea edx, [ebp + edi*2]
push 0x4ef484
push edx
call fcn.004aee50
add esp, 0x10
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x46f23f
xor edi, edi
test ebp, ebp
je 0x46f216
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00445f60
mov ebp, eax
lea eax, [esi + esi]
push eax
lea ecx, [ebp + edi*2]
push ebx
push ecx
call fcn.004aee50
add esp, 0x10
mov edi, dword [esp + 0x10]
mov ax, word [edi]
test ax, ax
mov esi, edi
je 0x46f272
lea ecx, [ecx]
cmp ax, 9
jb 0x46f25c
cmp ax, 0xd
jbe 0x46f26e
cmp ax, 0x20
je 0x46f26e
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46f250
mov dword [esp + 0x10], edi
sub edi, esi
sar edi, 1
test edi, edi
jge 0x46f283
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + edi + 4]
push 0
call fcn.00445f60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x46f29e
mov word [ebx + edi*2 + 2], 0
lea eax, [edi + edi]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebx], 0
je 0x46f2f5
xor edi, edi
test ebp, ebp
je 0x46f2cc
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00445f60
mov ebp, eax
lea eax, [esi + esi]
push eax
lea ecx, [ebp + edi*2]
push ebx
push ecx
call fcn.004aee50
add esp, 0x10
mov esi, dword [esp + 0x10]
lea esp, [esp]
mov ax, word [esi]
cmp ax, 9
jb 0x46f30f
cmp ax, 0xd
jbe 0x46f315
cmp ax, 0x20
jne 0x46f31a
add esi, 2
jmp 0x46f300
test ebx, ebx
mov dword [esp + 0x10], esi
je 0x46f335
mov edx, dword [0x51927c]
add ebx, 0xfffffff8
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp word [esi], 0
jne 0x46f1c0
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f35d
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xb4]
test ah, 2
jne 0x46f3f0
mov al, byte [esp + 0x26]
test al, al
jne 0x46f3f0
mov al, byte [esp + 0x1b]
test al, al
je 0x46f3f0
cmp word [esp + 0x2c], 0
je 0x46f3f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004574a0
mov esi, dword [esp + 0x2c]
push esi
call fcn.00442e30
add esp, 4
test eax, eax
jne 0x46f3a8
mov eax, esi
jmp 0x46f3ab
add eax, 2
push 0x2e
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
jne 0x46f3da
push 0x4efb38
lea ecx, [esp + 0x20]
call fcn.004462e0
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
call fcn.004462e0
mov ebp, dword [esp + 0x1c]
test esi, esi
je 0x46f3f0
mov eax, dword [0x51927c]
add esi, 0xfffffff8
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x4f0], 7
je 0x46f4d0
mov edx, dword [0x51927c]
mov ecx, eax
add ecx, 0xfffffff8
push ecx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x46f4d0
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x38]
or eax, 0x40
cmp edi, ecx
lea edx, [esp + 0x2e0]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ecx
mov word [esp + 0xd8], cx
mov word [esp + 0x2e0], cx
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], eax
je 0x46f484
mov dword [esp + 0x74], 0x44ac90
mov dword [esp + 0x78], edi
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x46f4bf
lea edx, [esp + 0xd8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x46f4bf
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x20]
call fcn.004574e0
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4f0], 7
call fcn.0044ac30
mov ebx, dword [esp + 0x500]
test ebx, ebx
je 0x46f607
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebx]
mov esi, eax
lea eax, [esi + esi + 4]
push ecx
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [ebx], eax
je 0x46f504
mov word [eax + esi*2 + 2], 0
mov edi, dword [ebx]
lea eax, [esi + esi]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov word [eax + ecx], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0041de75
test ebp, ebp
je 0x46f54c
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push edx
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46f562
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x46f579
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46f590
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x54]
test eax, eax
je 0x46f5a6
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x51927c]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46f5cf
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
test edi, edi
mov dword [esp + 0x48], 0
je 0x46f5ea
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push ecx
call esi
mov ecx, dword [esp + 0x4e8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e4
ret 0xc
xor esi, esi
test ebp, ebp
mov dword [esp + 0x2c], esi
je 0x46f642
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea edx, [esi + 2]
push edx
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
push esi
push eax
mov byte [esp + 0x4f8], 0xa
call fcn.00444550
test esi, esi
mov byte [esp + 0x4f0], 7
je 0x46f523
mov ecx, dword [0x51927c]
add esi, 0xfffffff8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push ecx
call esi
jmp 0x46f529