Function at 0x40b620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45a15b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
mov eax, dword [0x49c23c]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov esi, dword [esp + 0x434]
push 0x206
xor edi, edi
lea ecx, [esp + 0x21e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x224], ax
call fcn.00440500
push 0x206
lea eax, [esp + 0x22]
xor edx, edx
push edi
push eax
mov word [esp + 0x28], dx
call fcn.00440500
mov edx, dword [0x49ea64]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x49ea64
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x42c], edi
cmp esi, edi
je 0x40b7aa
push esi
call fcn.004417c0
push str.ntkrnlmp.exentkrnlpa.exentkrpamp.exentoskrnl.exehalmacpi.dllhalaacpi.dllhalacpi.dllhal.dll_1394bus.sys1394ohci.sysafd.sysacpi.sysatapi.sysataport.SYSCdfs.SYScdrom.sysCLASSPNP.SYScng.sysdisk.sysdxg.sysFastfat.sysfileinfo.sysfltMgr.sysFs_Rec.sysfvevol.sysHdAudio.sysHidUsb.sysHTTP.sysi8042prt.syskbdclass.sysKbdHid.syskmixer.sysks.sysmodem.sysmonitor.sysmouclass.sysMsfs.SYSmssmbios.sysMup.sysNDIS.sysndistapi.sysnetbios.sysNETIO.SYSNpfs.SYSNtfs.SYSNull.SYSSCSIPORT.SYSsr.syssrv.syssrv2.systcpip.systdx.sysusbccgp.sysusbehci.sysusbhub.sysUsbHub3.sysusbohci.sysUSBPORT.SYSusbprint.sysUSBSTOR.SYSusbuhci.sysusbvideo.sysvolmgr.syswatchdog.sysWdf01000.syswin32k.sysdxgmms1.sysdxgkrnl.syspci.sysHDAudBus.sysluafv.sys
call fcn.004417c0
push esi
push str.ntkrnlmp.exentkrnlpa.exentkrpamp.exentoskrnl.exehalmacpi.dllhalaacpi.dllhalacpi.dllhal.dll_1394bus.sys1394ohci.sysafd.sysacpi.sysatapi.sysataport.SYSCdfs.SYScdrom.sysCLASSPNP.SYScng.sysdisk.sysdxg.sysFastfat.sysfileinfo.sysfltMgr.sysFs_Rec.sysfvevol.sysHdAudio.sysHidUsb.sysHTTP.sysi8042prt.syskbdclass.sysKbdHid.syskmixer.sysks.sysmodem.sysmonitor.sysmouclass.sysMsfs.SYSmssmbios.sysMup.sysNDIS.sysndistapi.sysnetbios.sysNETIO.SYSNpfs.SYSNtfs.SYSNull.SYSSCSIPORT.SYSsr.syssrv.syssrv2.systcpip.systdx.sysusbccgp.sysusbehci.sysusbhub.sysUsbHub3.sysusbohci.sysUSBPORT.SYSusbprint.sysUSBSTOR.SYSusbuhci.sysusbvideo.sysvolmgr.syswatchdog.sysWdf01000.syswin32k.sysdxgmms1.sysdxgkrnl.syspci.sysHDAudBus.sysluafv.sys
call fcn.00440f80
add esp, 0x10
test eax, eax
jne 0x40b7a5
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b7aa
push esi
lea edx, [esp + 0x14]
push edx
push str._sdrivers_hs
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.004098a0
add esp, 0x14
cmp eax, edi
jl 0x40b7aa
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x21c]
push edx
call fcn.004144a0
add esp, 8
test eax, eax
je 0x40b7aa
mov edx, dword [esp + 0xc]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40b764
push esi
lea ecx, [esp + 0x10]
call fcn.0040b4e0
mov edx, dword [esp + 0xc]
lea eax, [esi + 1]
push eax
push edx
call fcn.0044156b
add esp, 8
cmp esi, edi
jl 0x40b7ff
mov eax, dword [esp + 0xc]
cmp esi, dword [eax - 8]
jg 0x40b7ff
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0xc]
push str.microsoft
push eax
call fcn.00441cce
add esp, 8
test eax, eax
je 0x40b7aa
mov edi, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x42c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004404e6
add esp, 0x424
ret 4
push 0x80070057
call fcn.004091a0
int3