Function at 0x4088c0
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, 0x50
mov dword [ebp - 0x5c], ecx
mov eax, dword [0x4a2040]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.00408340
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], 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 - 0x30], eax
pop eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x38], edx
test edx, edx
je 0x40899c
mov edx, dword [eax + ecx + 0x18]
mov esi, dword [eax + ecx + 0x1c]
add esi, ecx
mov dword [ebp - 0x40], esi
mov esi, dword [eax + ecx + 0x20]
add esi, ecx
mov dword [ebp - 0x48], esi
mov esi, dword [eax + ecx + 0x24]
add esi, ecx
xor ebx, ebx
mov dword [ebp - 0x44], esi
jmp 0x408946
inc ebx
cmp ebx, dword [ebp - 0x38]
je 0x40899c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x408940
test edx, edx
je 0x408940
xor edi, edi
mov dword [ebp - 0x34], ebx
jmp 0x408965
inc edi
cmp edx, edi
je 0x408940
movzx eax, word [esi + edi*2]
cmp ebx, eax
jne 0x408960
mov eax, dword [ebp - 0x48]
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 - 0x44]
mov ecx, ebx
mov ebx, dword [ebp - 0x34]
add esp, 8
test eax, eax
jne 0x408960
mov edi, dword [ebp - 0x3c]
add edi, ecx
jmp 0x40899c
mov dword [ebp - 0x30], 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 - 0x30], eax
pop eax
push 0x498fb0
push dword [ebp - 0x30]
call edi
push str.Kernel32.dll
call eax
push str.Thread32First
push eax
call edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], 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 - 0x30], eax
pop eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x38], edx
test edx, edx
je 0x408a8c
mov edx, dword [eax + ecx + 0x18]
mov esi, dword [eax + ecx + 0x1c]
add esi, ecx
mov dword [ebp - 0x40], esi
mov esi, dword [eax + ecx + 0x20]
add esi, ecx
mov dword [ebp - 0x48], esi
mov esi, dword [eax + ecx + 0x24]
add esi, ecx
xor ebx, ebx
mov dword [ebp - 0x44], esi
jmp 0x408a36
inc ebx
cmp ebx, dword [ebp - 0x38]
je 0x408a8c
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x408a30
test edx, edx
je 0x408a30
xor edi, edi
mov dword [ebp - 0x34], ebx
jmp 0x408a55
inc edi
cmp edx, edi
je 0x408a30
movzx eax, word [esi + edi*2]
cmp ebx, eax
jne 0x408a50
mov eax, dword [ebp - 0x48]
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 - 0x44]
mov ecx, ebx
mov ebx, dword [ebp - 0x34]
add esp, 8
test eax, eax
jne 0x408a50
mov edi, dword [ebp - 0x3c]
add edi, ecx
jmp 0x408a8c
mov dword [ebp - 0x30], 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 - 0x30], eax
pop eax
push 0x498fb0
push dword [ebp - 0x30]
call edi
push str.Kernel32.dll
call eax
push str.Thread32Next
push eax
call edi
mov esi, eax
push 0
push 4
call dword [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x408c31
mov edi, eax
mov dword [ebp - 0x30], 0x1c
lea ebx, [ebp - 0x30]
push ebx
push eax
call dword [ebp - 0x50]
test eax, eax
je 0x408c2a
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], edi
jmp 0x408b56
mov dword [ebp - 0x14], 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 - 0x14], eax
pop eax
push 0x498fb0
push dword [ebp - 0x14]
call esi
push str.user32.dll
call eax
push str.PostThreadMessageA
push eax
call esi
push 0
push 0
push 0x12
push dword [ebp - 0x4c]
call eax
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
lea ebx, [ebp - 0x30]
push ebx
push edi
call esi
test eax, eax
je 0x408c2a
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x24], eax
jne 0x408b4a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 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 - 0x14], eax
pop eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x78]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x408b00
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + ecx + 0x18]
mov esi, dword [eax + ecx + 0x1c]
add esi, ecx
mov dword [ebp - 0x40], esi
mov esi, dword [eax + ecx + 0x20]
add esi, ecx
mov dword [ebp - 0x48], esi
mov edi, dword [eax + ecx + 0x24]
add edi, ecx
xor ebx, ebx
mov dword [ebp - 0x44], edi
jmp 0x408bda
inc ebx
cmp ebx, dword [ebp - 0x38]
je 0x408b00
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x408bd0
test edx, edx
je 0x408bd0
xor esi, esi
jmp 0x408bf5
inc esi
cmp edx, esi
je 0x408bd0
movzx eax, word [edi + esi*2]
cmp ebx, eax
jne 0x408bf0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + esi*4]
add eax, dword [ebp - 0x34]
push 0x498fa1
push eax
mov edi, edx
call fcn.0045a450
mov edx, edi
mov edi, dword [ebp - 0x44]
add esp, 8
test eax, eax
jne 0x408bf0
mov esi, dword [ebp - 0x3c]
add esi, dword [ebp - 0x34]
jmp 0x408b00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041285c
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret