Function at 0x1000447f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10041c5a
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x10050060]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
push esi
push edi
mov eax, dword [0x10050060]
xor eax, esp
push eax
lea eax, [esp + 0x4f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
xor eax, eax
mov word [esp + 0x2ec], ax
push pe_nt_image_headers32
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ebx, word [esp + 0x2ec]
lea eax, [esp + 0x24]
or ebx, 0x20
push eax
sub ebx, 0x61
call fcn.10004e1c
and dword [esp + 0x500], 0
lea edi, [esp + 0x48]
call fcn.100037e5
mov ecx, edi
mov byte [esp + 0x500], 1
call fcn.1000389a
mov eax, dword [0x100461cc]
and dword [esp + 0x1c], 0
mov dword [esp + 0xdc], eax
mov eax, dword [0x100461d0]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
sar eax, 2
test eax, eax
je 0x1000469b
cmp dword [esp + 0x1c], eax
jb 0x10004556
call fcn.10028dac
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
cmp ebx, eax
jne 0x10004634
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x120]
add esi, 0x114
push 0x1c
cdq
pop ecx
idiv ecx
and dword [esp + 0x14], 0
test eax, eax
je 0x10004682
push dword [esp + 0x14]
call fcn.1000b885
push eax
lea esi, [esp + 0xa8]
call fcn.10004b8d
mov byte [esp + 0x500], 2
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x100045c8
lea eax, [esp + 0xa8]
movzx eax, word [eax]
or eax, 0x20
sub eax, 0x61
cmp eax, ebx
jne 0x100045f0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0xac]
push eax
lea edi, [esp + 0x30]
call fcn.10005b91
push 0
push 1
lea esi, [esp + 0xac]
mov byte [esp + 0x508], 1
call fcn.10005985
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x120]
add esi, 0x114
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], eax
jne 0x10004592
jmp 0x10004682
add eax, 0x61
mov word [esp + 0xdc], ax
lea eax, [esp + 0xdc]
push eax
lea esi, [esp + 0xa8]
call fcn.10004b6d
mov byte [esp + 0x500], 3
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov eax, esi
push eax
lea edi, [esp + 0x30]
call fcn.10005b91
push 0
push 1
mov byte [esp + 0x508], 1
call fcn.10005985
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
inc dword [esp + 0x1c]
sar eax, 2
cmp dword [esp + 0x1c], eax
jne 0x1000454f
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.10004e84
test al, al
je 0x1000498f
lea eax, [esp + 0xa4]
push eax
call fcn.10004e1c
mov byte [esp + 0x500], 4
call fcn.100078e1
push eax
lea eax, [esp + 0xa8]
call fcn.10004e6b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xbc], 0
je 0x1000493f
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
lea esi, [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.100078e1
push eax
lea esi, [esp + 0xc4]
call fcn.10004b8d
mov byte [esp + 0x500], 5
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov ecx, dword [esp + 0xa4]
push eax
push ecx
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0xb0]
call fcn.10005c02
lea eax, [esp + 0x9c]
mov ecx, esi
call fcn.10004c3c
mov esi, eax
lea eax, [esp + 0x94]
lea ecx, [esp + 0xc0]
call fcn.10004c5c
mov edi, eax
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc0]
call fcn.10004c3c
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x9c]
push eax
call fcn.100093be
mov edi, dword [esp + 0x2c]
xor ebx, ebx
add esp, 0x1c
cmp byte [edi + 0xf0], bl
je 0x10004838
cmp byte [edi + 0x110], bl
jne 0x10004824
cmp dword [esp + 0xd8], 8
mov edx, dword [esp + 0xc4]
jae 0x100047ed
lea edx, [esp + 0xc4]
lea ecx, [edi + 0xf4]
cmp dword [ecx + 0x18], 8
jb 0x100047fe
mov eax, dword [ecx + 4]
jmp 0x10004801
lea eax, [ecx + 4]
mov dx, word [edx]
cmp dx, word [eax]
jne 0x10004913
lea eax, [esp + 0xc0]
call fcn.100093ec
test al, al
je 0x10004824
mov byte [edi + 0x110], 1
cmp byte [edi + 0xf0], bl
je 0x10004838
cmp byte [edi + 0x110], bl
je 0x100048e5
xor eax, eax
push 0x206
mov word [esp + 0xe8], ax
lea eax, [esp + 0xea]
push ebx
push eax
call fcn.1002c7e0
mov eax, dword [esp + 0xd0]
add esp, 0xc
cmp dword [esp + 0xd8], 8
jae 0x10004870
lea eax, [esp + 0xc4]
push 0x104
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0xe4]
push eax
lea esi, [esp + 0x64]
call fcn.10004b6d
push edi
mov ebx, esi
call fcn.1000431b
push 0
push 1
mov bl, al
call fcn.10005985
test bl, bl
je 0x100048e3
mov eax, dword [edi + 8]
cmp eax, 1
jne 0x100048d1
push edi
lea ecx, [esp + 0xc4]
call fcn.10003e43
jmp 0x100048e3
cmp eax, 2
jne 0x100048e3
push edi
lea ecx, [esp + 0xc4]
call fcn.100040d9
xor ebx, ebx
cmp dword [esp + 0xd8], 8
mov eax, dword [esp + 0xc4]
jae 0x100048fd
lea eax, [esp + 0xc4]
lea ecx, [esp + 0xa4]
push ecx
push 0x10004a19
push ebx
push ebx
push ebx
push eax
call fcn.1000a096
push ebx
push 1
lea esi, [esp + 0xc8]
mov byte [esp + 0x508], 4
call fcn.10005985
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xbc], ebx
jne 0x1000470f
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x500], 1
cmp byte [ebx + 0xe0], 0
lea edi, [esp + 0xa4]
jne 0x1000497b
call fcn.10005c6f
push dword [esp + 0xa4]
call fcn.10028e08
pop ecx
lea esi, [esp + 0x14]
call fcn.10005cb5
jmp 0x100046ad
call fcn.10005c6f
push dword [esp + 0xa4]
call fcn.10028e08
pop ecx
jmp 0x10004993
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0xe0], 0
push 0x100458f0
lea esi, [esp + 0x64]
je 0x100049ae
call fcn.10004b6d
push 4
jmp 0x100049b5
call fcn.10004b6d
push 3
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call fcn.10003581
push 0
push 1
lea esi, [esp + 0x68]
call fcn.10005985
mov edi, ebx
call fcn.10003c03
lea esi, [esp + 0x48]
call fcn.10005431
lea edi, [esp + 0x24]
call fcn.10005c6f
push dword [esp + 0x24]
call fcn.10028e08
pop ecx
mov al, 1
mov ecx, dword [esp + 0x4f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.1002874e
mov esp, ebp
pop ebp
ret 4