Function at 0x458f83
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov edi, edx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
test ecx, ecx
je 0x458fd0
push 0x404a10
push ecx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x458fe3
call fcn.004411f6
test eax, eax
jne 0x458fe3
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
test edi, edi
jne 0x458ffd
mov eax, 0x80004003
jmp 0x459b41
push 0x208
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
test eax, eax
jne 0x45901d
mov eax, 0x8007000e
jmp 0x459b41
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push eax
push 0x104
call ebx
mov esi, eax
test esi, esi
jne 0x459062
push dword [ebp - 0x438]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45904d
push 0x57
pop eax
test eax, eax
jle 0x459b41
and eax, 0xffff
or eax, 0x80070000
jmp 0x459b41
cmp esi, 0x104
jbe 0x4590a2
push dword [ebp - 0x438]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
test eax, eax
je 0x459013
push eax
push esi
call ebx
push edi
call fcn.00440bc3
test eax, eax
je 0x45920e
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
mov ebx, 0x103
test eax, eax
pop ecx
lea esi, reloc.ADVAPI32.dll_TraceMessage
mov eax, ebx
je 0x4591df
mov edx, edi
call fcn.0042c88c
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
je 0x45912d
push 0x4231c0
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x45912d
push 0x202
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
mov ecx, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
test ecx, ecx
je 0x459013
push 0x404a6c
push 0x404c30
push 0x4231d4
mov eax, 0x100
call fcn.0042c95b
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x459140
push 8
mov ecx, 0x4231e0
pop eax
call fcn.00441394
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x459273
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x45925e
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push 0x42322c
push ecx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x45925e
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, 0x102
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
mov eax, esi
test eax, eax
je 0x4591a5
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x459280
mov edx, edi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
jmp 0x45926a
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
call fcn.0042c88c
lea eax, reloc.ADVAPI32.dll_TraceMessage
test eax, eax
je 0x4591fb
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
jmp 0x4590d7
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, 0x102
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
mov eax, esi
test eax, eax
je 0x459231
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
mov ebx, 0x103
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
mov eax, edi
push eax
call fcn.00440bc3
test eax, eax
jne 0x4590d7
mov eax, 0x80070002
jmp 0x459b41
lea edx, reloc.ADVAPI32.dll_TraceMessage
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov eax, ebx
call fcn.0042ca38
jmp 0x459280
mov eax, ebx
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x45929a
xor ecx, ecx
mov word [eax], cx
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
jne 0x4592bc
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, ebx
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.00455a29
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
mov eax, esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call fcn.0044d8d8
mov ebx, eax
cmp ebx, reloc.ADVAPI32.dll_TraceMessage
je 0x459a16
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
je 0x459345
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
test eax, eax
je 0x459345
push ebx
call fcn.00457013
test eax, eax
jne 0x459345
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x459337
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
jmp 0x45934b
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push esi
push ebx
xor edx, edx
call fcn.00457b84
mov esi, eax
test esi, esi
jns 0x459394
test edi, edi
je 0x45938e
push 0x404c44
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x45938e
push 0x404c44
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x459394
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4593e6
push 0
push ebx
xor edx, edx
mov ecx, 0x404b18
call fcn.00457b84
mov esi, eax
test esi, esi
jns 0x4593e6
test edi, edi
je 0x4593e0
push 0x404c44
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4593e0
push 0x404c44
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x4593e6
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
test eax, eax
jne 0x4593f7
mov edi, 0x80004003
jmp 0x459424
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov ecx, esi
call fcn.004573df
mov edi, eax
test edi, edi
jns 0x45942f
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
jmp 0x459a0a
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test edi, edi
je 0x45945b
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov ecx, 0x404b18
call fcn.004573df
test eax, eax
jns 0x45945b
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
mov eax, esi
call fcn.00456f43
mov esi, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp esi, 0xd2af9
je 0x4594b3
test edi, edi
je 0x4594b3
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x45949b
push dword [ebp - 0x420]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
pop ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
mov eax, 0x404b18
call fcn.00456f43
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
mov eax, esi
call fcn.004572c8
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov eax, esi
test esi, esi
jne 0x4594d2
mov eax, 0x404a10
push 1
push 0x404be0
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea ecx, reloc.ADVAPI32.dll_TraceMessage
xor edx, edx
call fcn.00455c5a
test eax, eax
je 0x459503
push dword [ebp - 0x43c]
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0044e58e
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
mov eax, esi
call fcn.00457083
push 0
push 0
push ebx
push edi
mov eax, esi
call fcn.00457f14
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, eax
test esi, esi
jns 0x45955e
test edi, edi
je 0x459558
push 0x404a6c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x459558
push 0x404a6c
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x45955e
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4595b6
push 0
push 0
push ebx
push dword [ebp - 0x42c]
mov eax, 0x404b18
call fcn.00457f14
mov esi, eax
test esi, esi
jns 0x4595b6
test edi, edi
je 0x4595b0
push 0x404a6c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4595b0
push 0x404a6c
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x4595b6
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0
push ebx
call fcn.00456622
mov esi, eax
test esi, esi
jns 0x4595fe
test edi, edi
je 0x4595f8
push 0x404bc0
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4595f8
push 0x404bc0
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x4595fe
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x45964e
push 0
push ebx
mov ecx, 0x404b18
call fcn.00456622
mov esi, eax
test esi, esi
jns 0x45964e
test edi, edi
je 0x459648
push 0x404bc0
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x459648
push 0x404bc0
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x45964e
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0
push dword [ebp - 0x428]
lea edx, reloc.ADVAPI32.dll_TraceMessage
push ebx
call fcn.004580ca
mov esi, eax
test esi, esi
jns 0x4596d6
test edi, edi
je 0x4596ce
push 0x404c30
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4596ce
push 0x404c30
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x459714
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 0
push 0x404b18
push ebx
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.004580ca
test eax, eax
jns 0x4596f9
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x459714
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
jmp 0x45969a
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af8
jne 0x45969a
cmp esi, 1
je 0x45969a
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 4
mov ecx, esi
pop eax
call fcn.00441394
jmp 0x4596a0
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af8
jne 0x459714
cmp eax, 1
je 0x459714
push 4
mov ecx, esi
pop eax
call fcn.00441394
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 1
push dword [ebp - 0x428]
lea edx, reloc.ADVAPI32.dll_TraceMessage
push ebx
call fcn.004580ca
mov esi, eax
test esi, esi
jns 0x45979c
test edi, edi
je 0x459794
push 0x404a8c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x459794
push 0x404a8c
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4597da
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 1
push 0x404b18
push ebx
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.004580ca
test eax, eax
jns 0x4597bf
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jmp 0x4597da
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
jmp 0x459760
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af8
jne 0x459760
cmp esi, 1
je 0x459760
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 4
mov ecx, esi
pop eax
call fcn.00441394
jmp 0x459766
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0xd2af8
jne 0x4597da
cmp eax, 1
je 0x4597da
push 4
mov ecx, esi
pop eax
call fcn.00441394
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
call fcn.00456826
mov esi, eax
test esi, esi
jns 0x459820
test edi, edi
je 0x45981a
push 0x404ac0
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x45981a
push 0x404ac0
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x459820
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x45983e
push ebx
mov ecx, 0x404b18
call fcn.00456826
test eax, eax
jns 0x45983e
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov ecx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 1
push ebx
call fcn.00456622
mov esi, eax
test esi, esi
jns 0x459886
test edi, edi
je 0x459880
push 0x404b5c
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x459880
push 0x404b5c
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x459886
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4598a6
push 1
push ebx
mov ecx, 0x404b18
call fcn.00456622
test eax, eax
jns 0x4598a6
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov eax, dword [0x467d10]
and eax, 8
push eax
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push 1
push ebx
push dword [ebp - 0x42c]
call fcn.00457f14
mov esi, eax
test esi, esi
jns 0x4598fd
test edi, edi
je 0x4598f7
push 0x404ba4
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4598f7
push 0x404ba4
push esi
push 0x423238
push 3
pop esi
call fcn.00440126
add esp, 0xc
jmp 0x4598fd
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test edi, edi
je 0x45992d
mov eax, dword [0x467d10]
and eax, 8
push eax
push 1
push ebx
push dword [ebp - 0x42c]
mov eax, 0x404b18
call fcn.00457f14
test eax, eax
jns 0x45992d
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push esi
push ebx
call fcn.004579c2
test eax, eax
jns 0x459944
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
test edi, edi
je 0x45995d
push 0x404b18
push ebx
call fcn.004579c2
test eax, eax
jns 0x45995d
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov eax, dword [0x467d10]
and eax, 8
push eax
xor edx, edx
push ebx
inc edx
mov ecx, esi
call fcn.00457b84
mov edi, eax
test edi, edi
jns 0x45997d
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4599a9
mov eax, dword [0x467d10]
and eax, 8
push eax
xor edx, edx
push ebx
inc edx
mov ecx, 0x404b18
call fcn.00457b84
mov edi, eax
test edi, edi
jns 0x4599a9
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
test byte [0x467d10], 8
jne 0x4599fe
mov edx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
mov ecx, esi
call fcn.00457222
test eax, eax
jns 0x4599ca
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
push ebx
mov eax, esi
call fcn.004570e6
mov edi, eax
test edi, edi
jns 0x4599de
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0
je 0x4599fe
push ebx
mov eax, 0x404b18
call fcn.004570e6
mov edi, eax
test edi, edi
jns 0x4599fe
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push 2
pop esi
jmp 0x459a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x459a27
push 0x57
pop edi
test edi, edi
jle 0x459a35
and edi, 0xffff
or edi, 0x80070000
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x42328c
push 2
pop esi
call fcn.00440126
add esp, 0xc
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test edi, edi
js 0x459a8f
test ebx, ebx
js 0x459a8f
call fcn.0044134a
cmp dword [0x467d10], 0
je 0x459ad2
call fcn.0044134a
movzx ebx, byte [0x467d10]
shr ebx, 3
and ebx, 1
or ebx, 0xd2af8
jmp 0x459ad2
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x4232c0
call fcn.00440126
add esp, 0xc
call fcn.0044134a
cmp dword [0x467d10], 0
je 0x459acc
call fcn.0044134a
movzx ebx, byte [0x467d10]
shr ebx, 3
and ebx, 1
or ebx, 0xc00d2afa
jmp 0x459ad2
test edi, edi
jns 0x459ad2
mov ebx, edi
push dword [ebp - 0x438]
mov esi, dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
call esi
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
pop ecx
test eax, eax
je 0x459aef
push eax
call esi
pop ecx
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test eax, eax
je 0x459afd
push eax
call esi
pop ecx
call fcn.004412f6
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov dword [0x467d0c], eax
mov dword [reloc.ole32.dll_CoCreateInstance], 1
test esi, esi
je 0x459b3f
cmp dword [esi + 4], 0
mov edi, dword [esi]
je 0x459b31
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
and dword [esi + 4], 0
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
mov esi, edi
test edi, edi
jne 0x459b1b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 8