Function at 0x402460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4eafbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a8
push ebx
push ebp
push edi
mov ebx, ecx
or edi, 0xffffffff
xor ebp, ebp
push edi
lea ecx, [ebx + 0x7c]
push ebp
mov dword [esp + 0x50], ebx
call fcn.00404bf0
lea ecx, [esp + 0x10]
call fcn.0045ccf0
lea ecx, [esp + 0x24]
mov dword [esp + 0x4bc], ebp
call fcn.0045ccf0
lea ecx, [esp + 0x50]
mov byte [esp + 0x4bc], 1
call fcn.00456040
mov eax, dword [str.Applications]
push 0x20019
push eax
push SysReAllocStringLen
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c8], 2
call fcn.0045ce50
test eax, eax
je 0x402571
call fcn.0047d180
test eax, eax
je 0x402526
mov ecx, dword [str.SOFTWARECLASSESLocal_SettingsSOFTWAREMICROSOFTWINDOWSShellMUICache]
push 0x20019
push ecx
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x30]
call fcn.0045ce50
test eax, eax
jne 0x4025aa
mov ecx, ebx
call fcn.00404a40
mov edx, dword [str.SOFTWARECLASSESLocal_SettingsSOFTWAREMICROSOFTWINDOWSShellMUICache]
push 0x20019
push edx
jmp 0x40255f
call fcn.0047d0d0
test eax, eax
je 0x4025aa
mov eax, dword [str.SOFTWAREMICROSOFTWINDOWSShellNoRoamMUICache]
push 0x20019
push eax
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x30]
call fcn.0045ce50
test eax, eax
jne 0x4025aa
mov ecx, ebx
call fcn.00404a40
mov ecx, dword [str.SOFTWAREMICROSOFTWINDOWSShellNoRoamMUICache]
push 0x20019
push ecx
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x30]
call fcn.0045ce50
test eax, eax
jne 0x4025aa
lea ecx, [esp + 0x50]
mov byte [esp + 0x4bc], 1
call fcn.00456050
lea ecx, [esp + 0x24]
mov byte [esp + 0x4bc], 0
call fcn.0045cdd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x4bc], edi
call fcn.0045cdd0
xor eax, eax
jmp 0x402f1c
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
call fcn.0045eba0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], ebp
cmp eax, ebp
jle 0x402ed3
push esi
lea eax, [esp + 0x44]
push ebp
push eax
lea ecx, [esp + 0x5c]
call fcn.00404f20
lea ecx, [esp + 0x3c]
push ebp
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c8], 3
call fcn.00404f20
lea edx, [esp + 0x34]
push ebp
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4c8], 4
call fcn.00404f20
push str._shellopencommand
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c4], 5
call fcn.004512b0
push str._shellReadcommand
lea ecx, [esp + 0x40]
call fcn.004512b0
push str._shelleditcommand
lea ecx, [esp + 0x38]
call fcn.004512b0
lea ecx, [esp + 0x88]
call fcn.00456040
push 0x52cb30
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c4], 6
call fcn.0044fec0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c8], 7
call fcn.0045ec90
test eax, eax
je 0x4026c4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4026c4
mov edx, dword [esp + 0x44]
push 0
push 0x52cb30
lea eax, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c4], 8
call fcn.00451310
mov byte [esp + 0x4c0], 7
lea ecx, [esp + 0x6c]
jmp 0x4028e8
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0045ec90
test eax, eax
je 0x40272c
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40272c
mov eax, dword [esp + 0x3c]
push 0
push 0x52cb30
lea ecx, [esp + 0xa0]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c4], 9
call fcn.00451310
mov byte [esp + 0x4c0], 7
lea ecx, [esp + 0x98]
jmp 0x4028e8
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x88]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0045ec90
test eax, eax
je 0x40278e
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40278e
mov ecx, dword [esp + 0x34]
push 0
push 0x52cb30
lea edx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c4], 0xa
call fcn.00451310
mov byte [esp + 0x4c0], 7
lea ecx, [esp + 0x68]
jmp 0x4028e8
lea eax, [esp + 0x38]
push ebp
push eax
lea ecx, [esp + 0x5c]
call fcn.00404f20
push 0x5166b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c4], 0xb
call fcn.004512b0
lea ecx, [esp + 0xa0]
call fcn.00456040
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0xa0]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c8], 0xc
call fcn.0045ea60
mov eax, dword [esp + 0xa4]
xor esi, esi
test eax, eax
jle 0x4028c8
lea eax, [esp + 0x38]
lea ecx, [esp + 0x24]
push eax
call fcn.0044fc60
push 0x5166ac
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c4], 0xd
call fcn.004512b0
lea ecx, [esp + 0x70]
push esi
push ecx
lea ecx, [esp + 0xa8]
call fcn.00404f20
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c4], 0xe
call fcn.00451310
lea ecx, [esp + 0x70]
mov byte [esp + 0x4c0], 0xd
call fcn.00450660
push str.command
lea ecx, [esp + 0x28]
call fcn.004512b0
mov edx, dword [esp + 0x24]
push 0
push 0x52cb30
lea eax, [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c4], 0xf
call fcn.00451310
lea ecx, [esp + 0x78]
mov byte [esp + 0x4c0], 0xd
call fcn.00450660
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x4c0], 0xc
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x24]
test eax, eax
jne 0x4028c3
call fcn.00450660
mov eax, dword [esp + 0xa4]
inc esi
cmp esi, eax
jl 0x4027ee
jmp 0x4028c8
call fcn.00450660
lea ecx, [esp + 0xa0]
mov byte [esp + 0x4c0], 0xb
call fcn.00456050
mov byte [esp + 0x4c0], 7
lea ecx, [esp + 0x38]
call fcn.00450660
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004021e0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402e69
mov ecx, dword [0x5164cc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00451840
cmp eax, edi
jne 0x402e69
push 0x52cb30
lea ecx, [esp + 0x24]
call fcn.0044fec0
mov byte [esp + 0x4c0], 0x10
call fcn.0047d070
test eax, eax
jne 0x4029cb
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0045d460
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x4c0], 0x11
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4029ac
mov ecx, ebx
call fcn.00404a40
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0045d460
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c4], 0x12
call fcn.004507f0
lea ecx, [esp + 0x80]
mov byte [esp + 0x4c0], 0x11
call fcn.00450660
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call fcn.00451310
mov byte [esp + 0x4c0], 0x10
lea ecx, [esp + 0x40]
jmp 0x402ab3
lea edx, [esp + 0x74]
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.00404f20
mov eax, dword [eax]
push 0
push str.FriendlyAppName
push eax
lea eax, [esp + 0x90]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x4d0], 0x13
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c4], 0x14
call fcn.00451310
lea ecx, [esp + 0x84]
mov byte [esp + 0x4c0], 0x13
call fcn.00450660
lea ecx, [esp + 0x74]
mov byte [esp + 0x4c0], 0x10
call fcn.00450660
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x402ab8
lea edx, [esp + 0x48]
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.00404f20
push 0x5166b0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c4], 0x15
call fcn.004512b0
mov eax, dword [esp + 0x48]
push 0
push str.FriendlyCache
lea ecx, [esp + 0xa4]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.0045d2d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c4], 0x16
call fcn.00451310
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4c0], 0x15
call fcn.00450660
mov byte [esp + 0x4c0], 0x10
lea ecx, [esp + 0x48]
call fcn.00450660
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
je 0x402e58
mov ecx, 0x101
xor eax, eax
lea edi, [esp + 0xb2]
mov word [esp + 0xb0], 0
rep stosd dword es:[edi], eax
push 0x7f
push edx
lea edx, [esp + 0x1b8]
push edx
stosw word es:[edi], ax
call fcn.004374c4
add esp, 0xc
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x54]
push ebp
push eax
call fcn.00404f20
mov eax, dword [eax]
push 0x7f
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.004374c4
add esp, 0xc
lea ecx, [esp + 0x7c]
call fcn.00450660
mov edx, dword [esp + 0x10]
push 0x103
lea eax, [esp + 0x2b4]
push edx
push eax
call fcn.004374c4
mov eax, dword [ebx + 0x80]
lea esi, [ebx + 0x7c]
mov ebp, eax
add esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x50], ebp
inc ebp
test ebp, ebp
jne 0x402b77
test ecx, ecx
je 0x402b6a
push ecx
mov dword [esp + 0x34], eax
call fcn.004d248b
add esp, 4
mov dword [esi], 0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
jmp 0x402cbd
test ecx, ecx
jne 0x402bb1
mov edi, ebp
shl edi, 7
add edi, ebp
shl edi, 3
push edi
call fcn.004d2462
mov edx, eax
mov ecx, edi
mov dword [esi], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
jmp 0x402cbd
mov edi, dword [esi + 8]
cmp ebp, edi
jg 0x402bfc
cmp eax, ebp
jge 0x402bec
mov edi, eax
mov edx, ebp
shl edi, 7
add edi, eax
sub edx, eax
xor eax, eax
lea edi, [ecx + edi*8]
mov ecx, edx
shl ecx, 7
add ecx, edx
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 4], ebp
jmp 0x402cbd
jle 0x402bf4
sub eax, ebp
mov dword [esp + 0x30], eax
mov dword [esi + 4], ebp
jmp 0x402cbd
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x402c27
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
cmp esi, 4
jge 0x402c1a
mov esi, 4
jmp 0x402c27
cmp esi, 0x400
jle 0x402c27
mov esi, 0x400
lea eax, [edi + esi]
cmp ebp, eax
jge 0x402c34
mov dword [esp + 0x1c], eax
jmp 0x402c3a
mov dword [esp + 0x1c], ebp
mov eax, ebp
mov ecx, eax
shl ecx, 7
add ecx, eax
shl ecx, 3
push ecx
call fcn.004d2462
mov edx, dword [esp + 0x50]
mov ebx, eax
add edx, 0x7c
mov edi, ebx
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov ecx, eax
shl ecx, 7
add ecx, eax
shl ecx, 3
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 4]
mov esi, ecx
sub eax, ecx
shl esi, 7
add esi, ecx
mov ecx, eax
shl ecx, 7
add ecx, eax
lea edi, [ebx + esi*8]
shl ecx, 3
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx]
push edx
call fcn.004d248b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x24]
add esp, 8
lea eax, [ecx + 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov ebx, ecx
mov eax, dword [esp + 0x50]
mov edx, dword [ebx + 0x7c]
mov ecx, eax
lea esi, [esp + 0xb0]
shl ecx, 7
add ecx, eax
lea edi, [edx + ecx*8]
mov ecx, 0x102
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x9c]
mov esi, edx
xor edi, edi
mov dword [esp + 0x30], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x402d1f
cmp eax, edi
je 0x402d0e
push eax
mov dword [esp + 0x34], edx
call fcn.004d248b
add esp, 4
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0xa4], edi
mov dword [ebx + 0xa0], edi
jmp 0x402e44
cmp eax, edi
jne 0x402d60
lea edi, [ebp*4]
push edi
call fcn.004d2462
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x9c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xa4], ebp
mov dword [ebx + 0xa0], ebp
jmp 0x402e44
mov ecx, dword [ebx + 0xa4]
cmp ebp, ecx
jg 0x402d97
cmp edx, ebp
jge 0x402d84
mov ecx, ebp
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0xa0], ebp
jmp 0x402e44
jle 0x402d8c
sub edx, ebp
mov dword [esp + 0x30], edx
mov dword [ebx + 0xa0], ebp
jmp 0x402e44
mov eax, dword [ebx + 0xa8]
cmp eax, edi
jne 0x402dc4
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x402db8
mov eax, 4
jmp 0x402dc4
cmp eax, 0x400
jle 0x402dc4
mov eax, 0x400
add eax, ecx
cmp ebp, eax
mov dword [esp + 0x1c], eax
jl 0x402dd2
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea ecx, [eax*4]
push ecx
call fcn.004d2462
mov ecx, dword [ebx + 0xa0]
mov esi, dword [ebx + 0x9c]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x54], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0xa0]
mov ecx, ebp
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x9c]
push eax
call fcn.004d248b
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
add esp, 8
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], ebp
mov dword [ebx + 0xa4], ecx
mov edx, dword [ebx + 0x9c]
mov ebp, dword [esp + 0x64]
or edi, 0xffffffff
mov dword [edx + esi*4], 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c0], 7
call fcn.00450660
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c0], 6
call fcn.00450660
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c0], 5
call fcn.00456050
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c0], 4
call fcn.00450660
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c0], 3
call fcn.00450660
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c0], 2
call fcn.00450660
mov eax, dword [esp + 0x58]
inc ebp
cmp ebp, eax
mov dword [esp + 0x64], ebp
jl 0x4025c9
pop esi
lea ecx, [esp + 0x24]
call fcn.0045cea0
lea ecx, [esp + 0x10]
call fcn.0045cea0
lea ecx, [esp + 0x50]
mov byte [esp + 0x4bc], 1
call fcn.00456050
lea ecx, [esp + 0x24]
mov byte [esp + 0x4bc], 0
call fcn.0045cdd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x4bc], edi
call fcn.0045cdd0
mov eax, 1
mov ecx, dword [esp + 0x4b4]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4b4
ret