Function at 0x408470
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
mov dword [ebp - 0x264], ecx
mov eax, dword [0x4a2040]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.00408340
mov ecx, eax
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
mov esi, dword [eax + edx + 0x14]
mov dword [ebp - 0x240], esi
test esi, esi
mov dword [ebp - 0x25c], ecx
je 0x408588
mov ecx, dword [eax + edx + 0x18]
mov esi, dword [eax + edx + 0x1c]
add esi, edx
mov dword [ebp - 0x248], esi
mov esi, dword [eax + edx + 0x20]
add esi, edx
mov dword [ebp - 0x250], esi
mov esi, dword [eax + edx + 0x24]
add esi, edx
xor ebx, ebx
mov dword [ebp - 0x24c], esi
jmp 0x40851b
inc edi
mov ebx, edi
cmp ebx, dword [ebp - 0x240]
je 0x408588
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x244], eax
test eax, eax
mov edi, ebx
je 0x408510
test ecx, ecx
je 0x408510
xor ebx, ebx
mov dword [ebp - 0x254], edi
jmp 0x408545
inc ebx
cmp ecx, ebx
je 0x408510
movzx eax, word [esi + ebx*2]
cmp edi, eax
jne 0x408540
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + ebx*4]
add eax, edx
push 0x498fa1
push eax
mov edi, edx
mov esi, ecx
call fcn.0045a450
mov ecx, esi
mov esi, dword [ebp - 0x24c]
mov edx, edi
mov edi, dword [ebp - 0x254]
add esp, 8
test eax, eax
jne 0x408540
mov edi, dword [ebp - 0x244]
add edi, edx
jmp 0x408588
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
push 0x498fb0
push dword [ebp - 0x23c]
call edi
push str.Kernel32.dll
call eax
push str.Process32First
push eax
call edi
mov ecx, eax
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
mov esi, dword [eax + edx + 0x14]
mov dword [ebp - 0x240], esi
test esi, esi
mov dword [ebp - 0x258], ecx
je 0x4086b8
mov ecx, dword [eax + edx + 0x18]
mov esi, dword [eax + edx + 0x1c]
add esi, edx
mov dword [ebp - 0x248], esi
mov esi, dword [eax + edx + 0x20]
add esi, edx
mov dword [ebp - 0x250], esi
mov esi, dword [eax + edx + 0x24]
add esi, edx
xor ebx, ebx
mov dword [ebp - 0x24c], esi
jmp 0x40864b
inc edi
mov ebx, edi
cmp ebx, dword [ebp - 0x240]
je 0x4086b8
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x244], eax
test eax, eax
mov edi, ebx
je 0x408640
test ecx, ecx
je 0x408640
xor ebx, ebx
mov dword [ebp - 0x254], edi
jmp 0x408675
inc ebx
cmp ecx, ebx
je 0x408640
movzx eax, word [esi + ebx*2]
cmp edi, eax
jne 0x408670
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + ebx*4]
add eax, edx
push 0x498fa1
push eax
mov edi, edx
mov esi, ecx
call fcn.0045a450
mov ecx, esi
mov esi, dword [ebp - 0x24c]
mov edx, edi
mov edi, dword [ebp - 0x254]
add esp, 8
test eax, eax
jne 0x408670
mov edi, dword [ebp - 0x244]
add edi, edx
jmp 0x4086b8
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
push 0x498fb0
push dword [ebp - 0x23c]
call edi
push str.Kernel32.dll
call eax
push str.Process32Next
push eax
call edi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x260], edx
test edx, edx
je 0x4087e8
mov edx, dword [eax + ecx + 0x18]
mov esi, dword [eax + ecx + 0x1c]
add esi, ecx
mov dword [ebp - 0x244], esi
mov esi, dword [eax + ecx + 0x20]
add esi, ecx
mov dword [ebp - 0x250], esi
mov esi, dword [eax + ecx + 0x24]
add esi, ecx
xor ebx, ebx
mov dword [ebp - 0x24c], esi
jmp 0x408779
inc ebx
cmp ebx, dword [ebp - 0x260]
je 0x4087e8
mov eax, dword [ebp - 0x244]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x408770
test edx, edx
je 0x408770
xor edi, edi
mov dword [ebp - 0x254], ebx
jmp 0x4087a5
inc edi
cmp edx, edi
je 0x408770
movzx eax, word [esi + edi*2]
cmp ebx, eax
jne 0x4087a0
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + edi*4]
add eax, ecx
push 0x498fa1
push eax
mov ebx, ecx
mov esi, edx
call fcn.0045a450
mov edx, esi
mov esi, dword [ebp - 0x24c]
mov ecx, ebx
mov ebx, dword [ebp - 0x254]
add esp, 8
test eax, eax
jne 0x4087a0
mov edi, dword [ebp - 0x240]
add edi, ecx
jmp 0x4087e8
mov dword [ebp - 0x23c], 0
push eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 0x23c], eax
pop eax
push 0x498fb0
push dword [ebp - 0x23c]
call edi
push str.SHLWAPI.dll
call eax
push str.StrCmpW
push eax
call edi
mov ebx, eax
push 0
push 2
call dword [ebp - 0x25c]
mov esi, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [ebp - 0x258]
test eax, eax
je 0x40887f
lea edi, [ebp - 0x218]
nop word [eax + eax]
push dword [ebp - 0x264]
push edi
call ebx
test eax, eax
je 0x40888d
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [ebp - 0x248]
test eax, eax
jne 0x408860
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xffffffff
jmp 0x40889a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041285c
mov eax, esi
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret