Function at 0x403e00
Capabilities:
Create process on windows
Delete file
Get common file path
Get file attributes
Hide graphical window
Query environment variable
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41847d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8e8
mov eax, dword [0x42139c]
mov ecx, dword [0x4221cc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [ecx + edi*4]
xor eax, ebp
mov dword [esp + 0x8ec], eax
mov eax, dword [ebp + 8]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0040d95d
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
mov esi, eax
call fcn.0040d95d
add esi, eax
lea eax, [esi + esi + 1]
push eax
call fcn.0040e3d2
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x403ea9
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x27
push 0xbe5
call fcn.00402450
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404b86
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
push esi
call fcn.0040e40e
push ebx
push esi
call fcn.0040e3e4
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x403f09
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push 0
lea ecx, [esp + 0x48]
push ecx
push 0
push str.Application
push edx
call ebx
test eax, eax
je 0x403f62
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040d925
add esp, 4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404195
push 4
call fcn.0040e3d2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4040ea
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x1d
jmp 0x404aa1
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + ecx + 2]
push edx
call fcn.0040e3d2
mov edi, eax
add esp, 4
test edi, edi
jne 0x403fa9
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x28
push 0xbe5
call fcn.00402450
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404b86
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edi
lea edx, [esp + 0x48]
push edx
push 0
push str.Application
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040d925
push str._shellopencommand
call fcn.0040d95d
push str.Applications_
mov esi, eax
call fcn.0040d95d
add esi, dword [esp + 0x38]
add eax, esi
lea edx, [eax + eax + 1]
push edx
call fcn.0040e3d2
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x40401a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x29
jmp 0x403f8c
push str.Applications_
push esi
call fcn.0040e40e
push edi
push esi
call fcn.0040e3e4
push str._shellopencommand
push esi
call fcn.0040e3e4
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40406d
push esi
call fcn.0040d925
push edi
call fcn.0040d925
mov edi, dword [ebp + 0xc]
add esp, 8
jmp 0x403f12
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push 0
lea eax, [esp + 0x44]
push eax
push 0
push 0
push ecx
call ebx
mov edx, dword [esp + 0x30]
lea eax, [edx + edx + 1]
push eax
call fcn.0040e3d2
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4040b5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x2a
jmp 0x403e8c
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
push ecx
call ebx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040d925
push edi
call fcn.0040d925
add esp, 8
jmp 0x40445b
mov dword [ebx], edi
mov eax, dword [0x4221c8]
add eax, 0xc09
movzx ecx, ax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402200
mov esi, eax
mov edx, dword [0x4221c8]
add edx, 0xbb9
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x900], 0
call fcn.00402200
mov esi, dword [esi]
mov eax, dword [eax]
push 0x30
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404157
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x8fc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 1
push ebx
push eax
call fcn.00404cb0
add esp, 0xc
jmp 0x404b86
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push 0
lea edx, [esp + 0x4c]
push edx
push 0
push 0
push eax
call ebx
test eax, eax
je 0x40425f
push 4
call fcn.0040e3d2
mov esi, eax
add esp, 4
test esi, esi
jne 0x4041dc
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x1e
jmp 0x403e8c
mov dword [esi], edi
mov edx, dword [0x4221c8]
add edx, 0xc09
movzx eax, dx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402200
mov ebx, eax
mov ecx, dword [0x4221c8]
add ecx, 0xbb9
movzx edx, cx
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x900], 1
call fcn.00402200
mov ebx, dword [ebx]
mov eax, dword [eax]
push 0x30
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x10]
call fcn.00401ac0
lea ecx, [esp + 0x18]
mov dword [esp + 0x8fc], 0xffffffff
call fcn.00401ac0
mov eax, dword [esp + 0x14]
push 1
push esi
push eax
call fcn.00404cb0
add esp, 0xc
jmp 0x404b86
push str._shellopencommand
call fcn.0040d95d
add eax, dword [esp + 0x3c]
lea ecx, [eax + eax + 1]
push ecx
call fcn.0040e3d2
mov esi, eax
add esp, 8
test esi, esi
jne 0x404298
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x1f
jmp 0x404aa1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._shellopencommand
push esi
call fcn.0040e3e4
add esp, 8
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
push esi
je 0x404339
call fcn.0040d925
push 4
call fcn.0040e3d2
mov esi, eax
add esp, 8
test esi, esi
jne 0x404311
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x20
jmp 0x404aa1
mov dword [esi], edi
mov eax, dword [0x4221c8]
add eax, 0xc09
movzx ecx, ax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402200
mov ebx, eax
mov dword [esp + 0x8fc], 2
jmp 0x4043ae
call fcn.0040d925
mov ecx, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0x34]
push edx
push 0
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push ecx
call ebx
test eax, eax
je 0x404409
push 4
call fcn.0040e3d2
mov esi, eax
add esp, 4
test esi, esi
jne 0x404388
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x21
jmp 0x404aa1
mov dword [esi], edi
mov eax, dword [0x4221c8]
add eax, 0xc09
movzx ecx, ax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402200
mov ebx, eax
mov dword [esp + 0x8fc], 3
mov edx, dword [0x4221c8]
add edx, 0xbb9
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
call fcn.00402200
mov ebx, dword [ebx]
mov eax, dword [eax]
push 0x30
push ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x10]
call fcn.00401ac0
lea ecx, [esp + 0x18]
mov dword [esp + 0x8fc], 0xffffffff
call fcn.00401ac0
mov ecx, dword [esp + 0x14]
push 1
push esi
push ecx
call fcn.00404cb0
add esp, 0xc
jmp 0x404b86
mov edx, dword [esp + 0x34]
lea eax, [edx + edx + 1]
push eax
call fcn.0040e3d2
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40443a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x22
jmp 0x403e8c
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push ecx
call ebx
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x104
lea eax, [esp + 0x6dc]
push eax
push 0x419494
call esi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x404525
push 0x104
lea ecx, [esp + 0x6dc]
push ecx
push str.TEMP
call esi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x404525
push 0x104
lea edx, [esp + 0x6dc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4044d9
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0xb
push 0xc01
jmp 0x403f91
lea ecx, [esp + 0x6d8]
push ecx
call fcn.0040d95d
add eax, 5
add esp, 4
cmp eax, 0x104
jle 0x404510
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x23
push 0xc03
jmp 0x404aa6
lea eax, [esp + 0x6d8]
push str.Temp
push eax
call fcn.0040e3e4
add esp, 8
lea ecx, [esp + 0x6d8]
push str.temp_decode_
push ecx
call fcn.0040ef50
mov edi, eax
add esp, 8
test edi, edi
jne 0x40455d
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0xc
push 0xc03
jmp 0x404aa6
push edi
call fcn.0040d95d
mov ebx, dword [esp + 0x1c]
push ebx
mov esi, eax
call fcn.0040d95d
add esi, eax
add esp, 8
cmp esi, 0x104
jle 0x404599
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x24
push 0xc03
jmp 0x403f91
lea ecx, [esp + 0xb0]
push edi
push ecx
call fcn.0040e40e
lea edx, [esp + 0xb8]
push ebx
push edx
call fcn.0040e3e4
lea eax, [esp + 0xc0]
push eax
call fcn.00403d90
add esp, 0x14
test eax, eax
je 0x404628
lea esp, [esp]
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6d8]
push str.temp_decode_
push ecx
stosw word es:[edi], ax
call fcn.0040ef50
push eax
lea edx, [esp + 0xbc]
push edx
call fcn.0040e40e
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.0040e3e4
lea edx, [esp + 0xc8]
push edx
call fcn.00403d90
add esp, 0x1c
test eax, eax
jne 0x4045d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40466c
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0xd
push 0xc05
jmp 0x403e91
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40469b
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0xe
push 0xc03
jmp 0x404aa6
mov eax, dword [0x4221c8]
mov ecx, dword [0x422308]
push 0
push 0x404ca0
push 0
add eax, 0x3f3
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
mov dword [0x422314], eax
call edi
mov edx, dword [0x422314]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x422314]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [0x4221d4]
lea ecx, [esp + 0x24]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], 0
call fcn.00405fa0
mov ecx, dword [0x422314]
add esp, 0x14
push 0
push ecx
mov esi, eax
call edi
mov edx, dword [0x422314]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push edx
call edi
test esi, esi
je 0x4047e1
add esi, 4
cmp esi, 5
ja case.0x40472f.0
jmp dword [esi*4 + 0x404bac]
mov eax, dword [0x4221c8]
add eax, 0xc09
movzx ecx, ax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402200
mov edi, eax
push str._RC15_
lea ecx, [esp + 0x50]
mov dword [esp + 0x900], 4
call fcn.00402160
mov esi, eax
mov edx, dword [0x4221c8]
add edx, 0xbcb
movzx eax, dx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x900], 5
call fcn.00402200
push esi
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x908], 6
call fcn.004020b0
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0xc
push 0x30
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x50]
call fcn.00401ac0
lea ecx, [esp + 0x48]
call fcn.00401ac0
lea ecx, [esp + 0x4c]
call fcn.00401ac0
lea ecx, [esp + 0x28]
mov dword [esp + 0x8fc], 0xffffffff
call fcn.00401ac0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
xor eax, eax
push 0x419450
mov ecx, 0x105
lea edi, [esp + 0x2c4]
push ebx
rep stosd dword es:[edi], eax
call fcn.0040ee9b
mov esi, eax
add esp, 8
test esi, esi
je 0x404855
sub eax, ebx
sar eax, 1
push eax
lea ecx, [esp + 0x2c4]
push ebx
push ecx
call fcn.0040ee5e
add esi, 4
lea edx, [esp + 0x2cc]
push esi
push edx
call fcn.0040e3e4
lea eax, [esp + 0x2d4]
push eax
push ebx
call fcn.0040e40e
add esp, 0x1c
mov ecx, 0x105
xor eax, eax
lea edi, [esp + 0x2c0]
rep stosd dword es:[edi], eax
push 0x419448
push ebx
call fcn.0040ee9b
mov esi, eax
add esp, 8
test esi, esi
je 0x404951
mov ecx, esi
sub ecx, ebx
sar ecx, 1
push ecx
lea edx, [esp + 0x2c4]
push ebx
push edx
call fcn.0040ee5e
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x2d0]
push ecx
call fcn.0040e3e4
add esi, 4
lea edx, [esp + 0x2d4]
push esi
push edx
call fcn.0040e3e4
add esp, 0x1c
jmp 0x404a32
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41939c
call fcn.00402160
mov edx, dword [esp + 0x24]
push edx
push 0x10
push 0xbcf
call fcn.004022b0
add esp, 0x10
jmp case.0x40472f.0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41939c
call fcn.00402160
mov eax, dword [esp + 0x24]
push eax
push 0x11
push 0xbc7
call fcn.004022b0
add esp, 0x10
jmp case.0x40472f.0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41939c
call fcn.00402160
push 0x12
jmp 0x404926
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x41939c
call fcn.00402160
push 0x13
push 0xbc1
call fcn.00402450
add esp, 0xc
mov ecx, dword [0x4221d4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
jmp 0x404b86
push 0x419440
push ebx
call fcn.0040ee9b
mov esi, eax
add esp, 8
test esi, esi
je 0x4049a6
sub eax, ebx
sar eax, 1
push eax
lea ecx, [esp + 0x2c4]
push ebx
push ecx
call fcn.0040ee5e
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x2d0]
push eax
call fcn.0040e3e4
add esi, 4
lea ecx, [esp + 0x2d4]
push esi
push ecx
call fcn.0040e3e4
add esp, 0x1c
jmp 0x404a32
push 0x419438
push ebx
call fcn.0040ee9b
mov esi, eax
add esp, 8
test esi, esi
je 0x4049fa
mov edx, esi
sub edx, ebx
sar edx, 1
push edx
lea eax, [esp + 0x2c4]
push ebx
push eax
call fcn.0040ee5e
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x2d0]
push edx
call fcn.0040e3e4
add esi, 4
lea eax, [esp + 0x2d4]
push esi
push eax
call fcn.0040e3e4
add esp, 0x1c
jmp 0x404a32
lea ecx, [esp + 0x2c0]
push ebx
push ecx
call fcn.0040e40e
lea edx, [esp + 0x2c8]
push 0x419434
push edx
call fcn.0040e3e4
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x2d4]
push ecx
call fcn.0040e3e4
add esp, 0x18
push 0x414
call fcn.0040e3d2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404a5a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x25
jmp 0x404aa1
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x20a
push ebx
lea eax, [esp + 0x2c8]
push eax
call esi
cmp eax, 0x20a
mov dword [esp + 0x20], eax
jbe 0x404ace
lea ecx, [eax + eax]
push ecx
push ebx
call fcn.0040ecf6
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x404abe
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41939c
call fcn.00402160
push 0x26
push 0xbe5
call fcn.00402450
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404b86
mov eax, dword [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x2c8]
push ecx
call esi
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
or eax, 3
push eax
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
lea edx, [esp + 0x68]
mov ecx, 0x11
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x6c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x58]
push ecx
call edi
or esi, 0x80
push esi
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0040d925
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040d925
add esp, 8
mov ecx, dword [esp + 0x8f4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d4a6
mov esp, ebp
pop ebp
ret