Function at 0x4370d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e0bf
mov eax, dword fs:[0]
push eax
sub esp, 0xd54
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x318]
mov dword [ebp - 0xd5c], ebx
push 0
push eax
mov dword [ebp - 0xd24], 0
call fcn.004d9fe0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd30], eax
mov dword [ebp - 0xd20], eax
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 0xd28], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x318]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x5c6ad0]
mov dword [ebp - 0xd38], eax
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xd38]
push str._sSogouPy.ime
push eax
call fcn.00415720
mov eax, 0x5c
mov dword [ebp - 0x8b4], 0
add esp, 0xc
mov word [ebp - 0x8b8], ax
mov dword [ebp - 0x8b0], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd10]
mov edi, dword [ebp - 0xd38]
push edi
call fcn.004368c0
test eax, eax
je 0x4375b5
lea eax, [ebp - 0xac0]
shr eax, 0x10
mov dword [ebp - 0xd40], eax
lea eax, [ebp - 0x90]
shr eax, 0x10
mov dword [ebp - 0xd4c], eax
nop word [eax + eax]
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0xac0]
cmp word [ebp - 0xd40], 0
mov esi, dword [0x5c6ad0]
mov dword [ebp - 0xd14], esi
jne 0x4373e6
movzx eax, ax
lea ecx, [ebp - 0xd14]
push eax
call fcn.00413df0
mov esi, dword [ebp - 0xd14]
or dword [ebp - 0xd24], 1
mov ecx, dword [esi - 8]
cmp word [esi + ecx*2 - 2], 0x5c
je 0x437280
cmp word [esi + ecx*2 - 2], 0x2f
je 0x437280
movzx eax, word [ebp - 0x8b8]
lea ecx, [ebp - 0xd14]
mov dword [ebp - 0xd1c], eax
lea eax, [ebp - 0xd1c]
push eax
push 1
call fcn.00415220
mov esi, dword [ebp - 0xd14]
lea eax, [ebp - 0xd3c]
push eax
lea ecx, [ebp - 0xd10]
call fcn.00436810
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4372b2
push eax
push ecx
lea ecx, [ebp - 0xd14]
call fcn.00415220
mov esi, dword [ebp - 0xd14]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xd3c]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x4372e7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4372e7
mov eax, dword [ebp - 0xd3c]
add eax, 0xfffffff4
push eax
call fcn.004d71b8
add esp, 4
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x440]
call fcn.00451610
and dword [ebp - 0xd24], 0xfffffffe
lea eax, [esi - 0xc]
mov byte [ebp - 4], 6
cmp eax, 0x5c6ad4
je 0x437329
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437329
push esi
call fcn.004d71b8
add esp, 4
push 0x40
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x440]
call fcn.00436f30
mov esi, dword [0x5c6ad0]
lea eax, [ebp - 0x90]
add esp, 4
mov dword [ebp - 0xd14], esi
cmp word [ebp - 0xd4c], 0
jne 0x437433
movzx eax, ax
lea ecx, [ebp - 0xd14]
push eax
call fcn.00413df0
mov esi, dword [ebp - 0xd14]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xd30]
mov ecx, dword [ebp - 0xd20]
mov dword [ebp - 0xd48], eax
cmp eax, ecx
jb 0x437506
lea edx, [eax + 1]
mov dword [ebp - 0xd1c], edx
cmp edx, ecx
jbe 0x437506
cmp dword [ebp - 0xd18], 0
push 4
jne 0x437480
push edx
call fcn.004e2cde
add esp, 8
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd34], eax
test eax, eax
je 0x4378e2
mov ecx, dword [ebp - 0xd1c]
mov dword [ebp - 0xd20], ecx
mov dword [ebp - 0xd2c], ecx
jmp 0x43750c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xd1c], eax
test eax, eax
je 0x43723f
push eax
lea ecx, [ebp - 0xd14]
call fcn.00413af0
test eax, eax
je 0x437239
mov eax, dword [ebp - 0xd1c]
mov esi, dword [ebp - 0xd14]
add eax, eax
push eax
lea eax, [ebp - 0xac0]
push eax
push esi
call fcn.004d9a60
add esp, 0xc
jmp 0x43723f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xd1c], eax
test eax, eax
je 0x437374
push eax
lea ecx, [ebp - 0xd14]
call fcn.00413af0
test eax, eax
je 0x43736e
mov eax, dword [ebp - 0xd1c]
mov esi, dword [ebp - 0xd14]
add eax, eax
push eax
lea eax, [ebp - 0x90]
push eax
push esi
call fcn.004d9a60
add esp, 0xc
jmp 0x437374
mov eax, ecx
mov ecx, edx
sub ecx, dword [ebp - 0xd20]
shr eax, 1
cmp ecx, eax
cmovbe ecx, eax
add ecx, dword [ebp - 0xd20]
mov eax, ecx
cmp edx, eax
cmovae eax, edx
push eax
mov dword [ebp - 0xd20], eax
call fcn.004e2cde
mov edx, eax
add esp, 8
mov dword [ebp - 0xd1c], edx
test edx, edx
je 0x4378e2
mov eax, dword [ebp - 0xd30]
lea ecx, [eax*4]
push ecx
push dword [ebp - 0xd18]
push ecx
push edx
call fcn.004139b0
push dword [ebp - 0xd18]
call fcn.004e1b56
mov eax, dword [ebp - 0xd1c]
add esp, 0x14
mov ecx, dword [ebp - 0xd20]
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd2c], ecx
jmp 0x43750c
mov eax, dword [ebp - 0xd18]
mov ecx, dword [ebp - 0xd30]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xd44], ecx
lea eax, [ebp - 0xd14]
mov byte [ebp - 4], 8
push eax
call fcn.00413a70
inc dword [ebp - 0xd30]
lea eax, [esi - 0xc]
cmp eax, 0x5c6ad4
je 0x437552
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437552
push esi
call fcn.004d71b8
add esp, 4
mov byte [ebp - 4], 2
cmp byte [ebp - 0x324], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x437582
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x434]
cmp eax, ecx
je 0x437582
push eax
call fcn.004e1b56
add esp, 4
mov eax, dword [ebp - 0x8b4]
test eax, eax
je 0x4378ec
cmp dword [ebp - 0x8b0], 0
je 0x4375bb
lea ecx, [ebp - 0xd10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x8b0], eax
test eax, eax
jne 0x4371f0
mov eax, dword [ebp - 0x8b4]
mov dword [ebp - 0x8b0], 0
test eax, eax
je 0x4375df
cmp eax, 0xffffffff
je 0x4375df
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x8b4], 0
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0xd50], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x437616
lea eax, [ebp - 0xd50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0xd50], 0
je 0x437b5d
push str.Wow64EnableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd48], eax
test eax, eax
je 0x437b5d
push 0
call eax
push 0x104
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x5c6ad0]
mov dword [ebp - 0xd3c], eax
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0xd3c]
push str._sSogouPy.ime
push eax
call fcn.00415720
mov eax, 0x5c
mov dword [ebp - 0x44c], 0
add esp, 0xc
mov word [ebp - 0x450], ax
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8a8]
mov edi, dword [ebp - 0xd3c]
push edi
call fcn.004368c0
test eax, eax
je 0x437ac6
lea eax, [ebp - 0x658]
shr eax, 0x10
mov dword [ebp - 0xd4c], eax
lea eax, [ebp - 0x110]
shr eax, 0x10
mov dword [ebp - 0xd44], eax
nop dword [eax]
nop dword [eax + eax]
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
cmp word [ebp - 0xd4c], 0
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 0xb
mov esi, dword [0x5c6ad0]
mov dword [ebp - 0xd14], esi
jne 0x4378fb
movzx eax, ax
lea ecx, [ebp - 0xd14]
push eax
call fcn.00413df0
mov esi, dword [ebp - 0xd14]
or dword [ebp - 0xd24], 2
mov ecx, dword [esi - 8]
cmp word [esi + ecx*2 - 2], 0x5c
je 0x437780
cmp word [esi + ecx*2 - 2], 0x2f
je 0x437780
movzx eax, word [ebp - 0x450]
lea ecx, [ebp - 0xd14]
mov dword [ebp - 0xd1c], eax
lea eax, [ebp - 0xd1c]
push eax
push 1
call fcn.00415220
mov esi, dword [ebp - 0xd14]
lea eax, [ebp - 0xd40]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.00436810
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4377b2
push eax
push ecx
lea ecx, [ebp - 0xd14]
call fcn.00415220
mov esi, dword [ebp - 0xd14]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xd40]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x4377e7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4377e7
mov eax, dword [ebp - 0xd40]
add eax, 0xfffffff4
push eax
call fcn.004d71b8
add esp, 4
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x440]
call fcn.00451610
and dword [ebp - 0xd24], 0xfffffffd
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0xe
cmp eax, 0x5c6ad4
je 0x437829
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437829
push esi
call fcn.004d71b8
add esp, 4
push 0x40
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x440]
call fcn.00436f30
mov esi, dword [0x5c6ad0]
lea eax, [ebp - 0x110]
add esp, 4
mov dword [ebp - 0xd14], esi
cmp word [ebp - 0xd44], 0
jne 0x437948
movzx eax, ax
lea ecx, [ebp - 0xd14]
push eax
call fcn.00413df0
mov esi, dword [ebp - 0xd14]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xd30]
mov ecx, dword [ebp - 0xd20]
mov dword [ebp - 0xd54], eax
cmp eax, ecx
jb 0x437a1b
lea edx, [eax + 1]
mov dword [ebp - 0xd1c], edx
cmp edx, ecx
jbe 0x437a1b
cmp dword [ebp - 0xd18], 0
push 4
jne 0x437995
push edx
call fcn.004e2cde
add esp, 8
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd34], eax
test eax, eax
je 0x4378e2
mov ecx, dword [ebp - 0xd1c]
mov dword [ebp - 0xd20], ecx
mov dword [ebp - 0xd2c], ecx
jmp 0x437a21
push 0x8007000e
call fcn.004138f0
mov dword [ebp - 0x8b0], 0
jmp 0x4375df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xd1c], eax
test eax, eax
je 0x43773f
push eax
lea ecx, [ebp - 0xd14]
call fcn.00413af0
test eax, eax
je 0x437739
mov eax, dword [ebp - 0xd1c]
mov esi, dword [ebp - 0xd14]
add eax, eax
push eax
lea eax, [ebp - 0x658]
push eax
push esi
call fcn.004d9a60
add esp, 0xc
jmp 0x43773f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xd1c], eax
test eax, eax
je 0x437874
push eax
lea ecx, [ebp - 0xd14]
call fcn.00413af0
test eax, eax
je 0x43786e
mov eax, dword [ebp - 0xd1c]
mov esi, dword [ebp - 0xd14]
add eax, eax
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.004d9a60
add esp, 0xc
jmp 0x437874
mov eax, ecx
mov ecx, edx
sub ecx, dword [ebp - 0xd20]
shr eax, 1
cmp ecx, eax
cmovbe ecx, eax
add ecx, dword [ebp - 0xd20]
mov eax, ecx
cmp edx, eax
cmovae eax, edx
push eax
mov dword [ebp - 0xd20], eax
call fcn.004e2cde
mov edx, eax
add esp, 8
mov dword [ebp - 0xd1c], edx
test edx, edx
je 0x4378e2
mov eax, dword [ebp - 0xd30]
lea ecx, [eax*4]
push ecx
push dword [ebp - 0xd18]
push ecx
push edx
call fcn.004139b0
push dword [ebp - 0xd18]
call fcn.004e1b56
mov eax, dword [ebp - 0xd1c]
add esp, 0x14
mov ecx, dword [ebp - 0xd20]
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd34], eax
mov dword [ebp - 0xd2c], ecx
jmp 0x437a21
mov eax, dword [ebp - 0xd18]
mov ecx, dword [ebp - 0xd30]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xd58], ecx
lea eax, [ebp - 0xd14]
mov byte [ebp - 4], 0x10
push eax
call fcn.00413a70
inc dword [ebp - 0xd30]
lea eax, [esi - 0xc]
cmp eax, 0x5c6ad4
je 0x437a67
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437a67
push esi
call fcn.004d71b8
add esp, 4
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x324], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x437a97
mov eax, dword [ebp - 0x438]
lea ecx, [ebp - 0x434]
cmp eax, ecx
je 0x437a97
push eax
call fcn.004e1b56
add esp, 4
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x437af4
cmp dword [ebp - 0x448], 0
je 0x437acc
lea ecx, [ebp - 0x8a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x448], eax
test eax, eax
jne 0x4376f0
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x448], 0
test eax, eax
je 0x437afe
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x437b04
push eax
call esi
mov dword [ebp - 0x44c], 0
jmp 0x437b04
mov dword [ebp - 0x448], 0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
push 1
call dword [ebp - 0xd48]
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x448], 0
test eax, eax
je 0x437b32
cmp eax, 0xffffffff
je 0x437b32
push eax
call esi
mov dword [ebp - 0x44c], 0
lea eax, [edi - 0xc]
mov byte [ebp - 4], 2
cmp eax, 0x5c6ad4
je 0x437b57
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437b57
push edi
call fcn.004d71b8
add esp, 4
mov edi, dword [ebp - 0xd38]
mov edx, dword [ebp - 0xd30]
xor ecx, ecx
mov dword [ebp - 0xd24], ecx
test edx, edx
je 0x437cbf
mov eax, dword [ebp - 0xd18]
nop dword [eax]
xor esi, esi
cmp dword [ebx + 4], esi
jbe 0x437bc8
cmp ecx, edx
jae 0x437d31
mov ecx, dword [eax]
cmp esi, dword [ebx + 4]
jae 0x437d31
mov eax, dword [ebx]
push ecx
push dword [eax + esi*4]
call fcn.004e0bff
add esp, 8
test eax, eax
je 0x437c95
mov eax, dword [ebp - 0xd18]
inc esi
mov ecx, dword [ebp - 0xd24]
mov edx, dword [ebp - 0xd30]
cmp esi, dword [ebx + 4]
jb 0x437b87
cmp ecx, edx
jae 0x437d31
mov eax, dword [ebx + 4]
mov dword [ebp - 0xd58], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0xd44], eax
cmp eax, esi
jb 0x437c6e
lea edx, [eax + 1]
cmp edx, esi
jbe 0x437c6e
cmp dword [ebx], 0
jne 0x437c15
mov esi, dword [ebx + 0xc]
cmp esi, edx
push 4
cmovbe esi, edx
push esi
call fcn.004e2cde
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x4378e2
jmp 0x437c6b
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x437c29
mov ecx, esi
mov eax, edx
shr ecx, 1
sub eax, esi
cmp eax, ecx
cmova ecx, eax
add esi, ecx
cmp edx, esi
push 4
cmovae esi, edx
push esi
call fcn.004e2cde
add esp, 8
mov dword [ebp - 0xd48], eax
test eax, eax
je 0x4378e2
mov ecx, dword [ebx + 4]
shl ecx, 2
push ecx
push dword [ebx]
push ecx
push eax
call fcn.004139b0
push dword [ebx]
call fcn.004e1b56
mov eax, dword [ebp - 0xd48]
add esp, 0x14
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xd44]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0xd54], ecx
mov byte [ebp - 4], 0x11
push dword [ebp - 0xd18]
call fcn.00413a70
mov byte [ebp - 4], 2
inc dword [ebx + 4]
mov ecx, dword [ebp - 0xd24]
mov eax, dword [ebp - 0xd18]
inc ecx
mov edx, dword [ebp - 0xd30]
add eax, 4
mov dword [ebp - 0xd24], ecx
mov dword [ebp - 0xd18], eax
cmp ecx, edx
jb 0x437b80
mov eax, dword [ebp - 0x8b4]
mov dword [ebp - 0x8b0], 0
test eax, eax
je 0x437ce9
cmp eax, 0xffffffff
je 0x437ce9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x8b4], 0
lea eax, [edi - 0xc]
cmp eax, 0x5c6ad4
je 0x437d0a
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437d0a
push edi
call fcn.004d71b8
add esp, 4
lea ecx, [ebp - 0xd34]
call fcn.00414590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004138f0
int3