Function at 0x500608
Capabilities:
Access peb ldr_data
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x500611
mov eax, dword [ebp - 4]
add esp, 0xfffffe5c
push ebx
xor ecx, ecx
mov dword [ebp - 0x101a8], ecx
mov dword [ebp - 0x101a4], ecx
mov dword [ebp - 0x101a0], ecx
mov dword [ebp - 0x1019c], ecx
mov dword [ebp - 0x10194], ecx
mov dword [ebp - 0x10198], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x500aa2
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dl, 1
mov eax, dword [0x427e1c]
call fcn.00427e7c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
push 0x18
mov eax, ebx
mov ecx, 0x28
mov edx, 0x28
call fcn.00427f9c
mov dl, 1
mov eax, dword [0x429730]
call fcn.0042baf0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
call fcn.0042c56c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov edx, 0xff000005
call fcn.0042b96c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
push eax
lea eax, [ebp - 0x10190]
push eax
mov ecx, dword [ebx + 0x30]
xor edx, edx
xor eax, eax
call fcn.0041a66c
lea edx, [ebp - 0x10190]
mov eax, dword [ebp - 0x10]
call fcn.0042be30
mov eax, dword [ebp - 0x10]
call fcn.004038c4
mov eax, dword [ebp - 0x14]
call fcn.0040a048
test al, al
je 0x5009df
mov dl, 1
mov eax, dword [0x427e1c]
call fcn.00427e7c
mov dword [ebp - 0x1c], eax
push 0x18
mov ecx, 0x20
mov edx, 0x20
mov eax, dword [ebp - 0x1c]
call fcn.00427f9c
mov dl, 1
mov eax, dword [0x429730]
call fcn.0042baf0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
call fcn.0042c56c
lea edx, [ebp - 0x10198]
mov eax, dword [ebp - 0x14]
call fcn.0040a414
mov eax, dword [ebp - 0x10198]
lea edx, [ebp - 0x10194]
call fcn.004092f8
mov eax, dword [ebp - 0x10194]
mov edx, 0x500ab8
call fcn.00404b5c
sete byte [ebp - 0x1d]
xor edx, edx
push ebp
push 0x5009d5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov edx, 0xff000005
call fcn.0042b96c
push 0x20
lea eax, [ebp - 0x10190]
push eax
mov ecx, 0x20
xor edx, edx
xor eax, eax
call fcn.0041a66c
lea edx, [ebp - 0x10190]
mov eax, dword [ebp - 0x10]
call fcn.0042be30
cmp byte [ebp - 0x1d], 0
je 0x50081f
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404c10
push eax
call sub.shell32.dll_ExtractIconExA
cmp dword [ebp - 8], 0
je 0x50081f
push 3
push 0
push 0
push 0x20
push 0x20
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0042c4b4
push eax
call sub.user32.dll_DrawIconEx
call fcn.00404150
jmp 0x500a7c
mov eax, dword [ebp - 0x14]
call fcn.00404c10
mov edx, eax
lea eax, [ebp - 0x10180]
call fcn.0040a5bc
mov word [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x10180]
push eax
mov eax, dword [0x517668]
push eax
call sub.shell32.dll_ExtractAssociatedIconA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x500883
push 3
push 0
push 0
push 0x20
push 0x20
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0042c4b4
push eax
call sub.user32.dll_DrawIconEx
call fcn.00404150
jmp 0x500a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500a7c
mov eax, dword [ebp - 0x10]
call fcn.004038c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x34]
mov ecx, dword [ebp - 0x1c]
sub edx, dword [ecx + 0x34]
sar edx, 1
jns 0x5008ae
adc edx, 0
push edx
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x1c]
sub ecx, dword [edx + 0x30]
sar ecx, 1
jns 0x5008bf
adc ecx, 0
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x1c]
call fcn.00428560
mov eax, dword [ebp - 0x1c]
call fcn.004038c4
push 0x600
push 0x160
lea eax, [ebp - 0x180]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404c10
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, dword [ebp - 4]
add eax, 0x10
lea edx, [ebp - 0x174]
mov ecx, 0x104
call fcn.004049c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x500928
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 0x500ac8
call fcn.00404a5c
cmp byte [ebp - 0x1d], 0
je 0x500970
lea ecx, [ebp - 0x1019c]
mov edx, 6
mov eax, dword [ebp - 0x14]
call fcn.00488440
mov edx, dword [ebp - 0x1019c]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.004047a4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x500983
mov eax, dword [ebp - 4]
add eax, 0x14
lea edx, [ebp - 0x70]
mov ecx, 0x50
call fcn.004049c0
jmp 0x500983
mov eax, dword [ebp - 4]
add eax, 0x14
lea edx, [ebp - 0x70]
mov ecx, 0x50
call fcn.004049c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x5009a2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, 0x500ac8
call fcn.00404a5c
mov eax, dword [ebp - 0x14]
call fcn.004881b8
push edx
push eax
lea edx, [ebp - 0x101a0]
mov eax, dword [0x5166b8]
mov eax, dword [eax]
call fcn.00487b54
mov ecx, dword [ebp - 0x101a0]
mov eax, dword [ebp - 4]
add eax, 0x18
mov edx, 0x500ac8
call fcn.00404a5c
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x34]
mov ecx, dword [0x5196ac]
sub edx, dword [ecx + 0x34]
sar edx, 1
jns 0x5009f8
adc edx, 0
push edx
mov ecx, dword [eax + 0x30]
mov edx, dword [0x5196ac]
sub ecx, dword [edx + 0x30]
sar ecx, 1
jns 0x500a0c
adc ecx, 0
mov edx, eax
mov eax, dword [0x5196ac]
call fcn.004a2478
lea edx, [ebp - 0x101a4]
mov eax, dword [ebp - 0x14]
call fcn.0040a3d0
mov edx, dword [ebp - 0x101a4]
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.004047a4
mov eax, dword [ebp - 4]
add eax, 0x14
mov edx, 0x500ad4
call fcn.004047a4
mov eax, 0x989680
call fcn.0040326c
add eax, 0xf4240
cdq
push edx
push eax
lea edx, [ebp - 0x101a8]
mov eax, dword [0x5166b8]
mov eax, dword [eax]
call fcn.00487b54
mov edx, dword [ebp - 0x101a8]
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.004047a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500aa9
lea eax, [ebp - 0x101a8]
mov edx, 6
call fcn.00404774
lea eax, [ebp - 0x14]
call fcn.00404750
ret