Function at 0x410046
Capabilities:
Enumerate process modules
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4db2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xe27c
call fcn.004a7530
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [0x520340]
mov dword [ebp - 0xe21c], eax
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0x18
idiv ecx
mov ebx, dword [ebp + 8]
cmp edx, 0x16
jne 0x410076
lea ecx, [edx - 0x15]
cmp esi, ecx
jle 0x410070
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x410064
mov dword [0x520340], ecx
push 0
lea ecx, [ebp - 0xe24c]
call fcn.00442860
xor edi, edi
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xe204], eax
mov dword [ebp - 0xe1f4], edi
mov dword [ebp - 0xe200], edi
mov dword [ebp - 0xe1fc], edi
push 0x4da42c
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0xe208]
push eax
call fcn.0044ee90
add esp, 0x1c
push 0x4da538
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00443e00
test al, al
je 0x41013b
push 0x4da538
mov ecx, ebx
call fcn.00442de0
mov ecx, eax
call fcn.00443dd0
test al, al
je 0x41013b
push 0x4da538
mov ecx, ebx
call fcn.00442de0
mov ecx, eax
call fcn.004434b0
mov esi, eax
test esi, esi
je 0x41013b
push 1
lea ecx, [ebp - 0xe204]
call fcn.0040c370
mov edi, dword [ebp - 0xe200]
test edi, edi
je 0x41012d
mov dword [edi], esi
add edi, 4
mov dword [ebp - 0xe200], edi
jmp 0x410557
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0xe20c], ebx
cmp ebx, 0xffffffff
jne 0x41024a
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe1f8], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe1f8]
push str.enumModules_CreateToolhelp32Snapshot_process__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xe1f8]
push eax
lea eax, [ebp - 0xdae8]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xe25c]
mov byte [ebp - 4], 5
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xe24c]
mov byte [ebp - 4], 6
call fcn.00442d00
lea ecx, [ebp - 0xe25c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe25c]
mov byte [ebp - 4], 5
call fcn.00442a70
cmp dword [ebp - 0xdad4], 0x10
jb 0x4101f8
push dword [ebp - 0xdae8]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0xe1f8]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edx + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41021e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe208]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410241
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x410d16
push 0x22c
lea eax, [ebp - 0xdd14]
push 0
push eax
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0xdd14]
push eax
push ebx
mov dword [ebp - 0xdd14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x410d8c
nop
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe1f0], esi
lea eax, [ebp - 0xdcf0]
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x4102c8
movzx ebx, ax
push 0
push ebx
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4102f9
push ebx
push eax
lea ecx, [ebp - 0xe1f0]
call fcn.00407650
jmp 0x4102f3
lea ecx, [ebp - 0xdcf0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4102d1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xdcf0]
push eax
lea ecx, [ebp - 0xe1f0]
call fcn.00409950
mov esi, dword [ebp - 0xe1f0]
mov byte [ebp - 4], 8
call fcn.00417b60
test al, al
jne 0x41030c
dec dword [0x5204fc]
mov ebx, dword [esi - 0xc]
test ebx, ebx
jns 0x41031d
push 0x80070057
call fcn.00404480
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x410340
push ebx
lea ecx, [ebp - 0xe1f0]
call fcn.004088a0
mov esi, dword [ebp - 0xe1f0]
lea eax, [ebx + 1]
push eax
push esi
call fcn.004a7c96
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x410313
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [0x520340]
mov ecx, 0xe
lea eax, [ebx + 1]
imul eax, ebx
cdq
idiv ecx
cmp edx, 0xa
jne 0x4103a3
xor eax, eax
test ebx, ebx
je 0x41039e
lea ebx, [ebx]
mov ecx, ebx
and ecx, 1
add eax, ecx
mov dword [ebp - 0xe1ec], eax
mov eax, ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [ebp - 0xe1ec]
jne 0x410380
mov dword [0x520340], eax
mov eax, dword [ebp - 0xe208]
cmp dword [eax - 0xc], 0
jl 0x4104f4
push esi
push eax
call fcn.004a77ff
add esp, 8
test eax, eax
je 0x4104f4
sub eax, dword [ebp - 0xe208]
sar eax, 1
js 0x4104f4
mov ecx, dword [ebp - 0xe1f4]
mov edx, dword [ebp - 0xe204]
lea eax, [ebp - 0xdd0c]
cmp eax, ecx
jae 0x410470
cmp edx, eax
ja 0x410470
mov ebx, eax
sub ebx, edx
sar ebx, 2
cmp ecx, edi
jne 0x410467
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x410467
sub ecx, edx
sar ecx, 2
mov eax, 0x3fffffff
sub eax, ecx
cmp eax, 1
jae 0x410423
push str.vector_T__too_long
call fcn.004a5290
sub edi, dword [ebp - 0xe204]
lea edx, [ecx + 1]
sar edi, 2
mov ecx, edi
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
cmp eax, edi
jae 0x410442
xor edi, edi
jmp 0x410444
add edi, ecx
cmp edi, edx
cmovb edi, edx
push edi
lea ecx, [ebp - 0xe204]
call fcn.0040c2f0
mov edi, dword [ebp - 0xe1fc]
mov ecx, dword [ebp - 0xe200]
mov edx, dword [ebp - 0xe204]
test ecx, ecx
je 0x4104e5
mov eax, dword [edx + ebx*4]
jmp 0x4104e3
cmp ecx, edi
jne 0x4104d9
mov eax, edi
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x4104d9
sub ecx, edx
sar ecx, 2
mov eax, 0x3fffffff
sub eax, ecx
cmp eax, 1
jae 0x41049b
push str.vector_T__too_long
call fcn.004a5290
sub edi, dword [ebp - 0xe204]
lea edx, [ecx + 1]
sar edi, 2
mov ecx, edi
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
cmp eax, edi
jae 0x4104ba
xor edi, edi
jmp 0x4104bc
add edi, ecx
cmp edi, edx
cmovb edi, edx
push edi
lea ecx, [ebp - 0xe204]
call fcn.0040c2f0
mov edi, dword [ebp - 0xe1fc]
mov ecx, dword [ebp - 0xe200]
test ecx, ecx
je 0x4104e5
mov eax, dword [ebp - 0xdd0c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0xe200], ecx
mov dword [ebp - 0xe1f4], ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410512
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0xe20c]
lea eax, [ebp - 0xdd14]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410280
call fcn.00417ae0
test al, al
jne 0x41054a
mov eax, dword [0x520340]
test eax, eax
mov ecx, 1
cmove eax, ecx
mov dword [0x520340], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0xe1f4]
or ebx, 0xffffffff
xor ecx, ecx
mov dword [ebp - 0xe210], 0xd
mov esi, dword [ebp - 0xe204]
mov eax, edi
sub eax, esi
sar eax, 2
mov dword [ebp - 0xe1f8], ecx
cmp ecx, eax
jae 0x410c8f
push dword [esi + ecx*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [0x520340]
mov ecx, esi
imul ecx, esi
mov dword [ebp - 0xe1f0], eax
and ecx, 0x8000000f
jns 0x4105af
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 7
jne 0x4105bb
dec esi
mov dword [0x520340], esi
test eax, eax
je 0x410c73
push 0
lea ecx, [ebp - 0xe23c]
call fcn.00442860
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
mov byte [ebp - 4], 0xc
call fcn.004a7560
mov esi, dword [ebp - 0xe1f0]
add esp, 0xc
lea eax, [ebp - 0x814]
push 0x800
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
jne 0x410688
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe1f0], eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe1f0]
push str.enumModules_GetProcessImageFileName__d
push eax
call fcn.00406160
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xe1f0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41066d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 3
call fcn.00442a70
mov ecx, dword [ebp - 0xe1f8]
inc ecx
jmp 0x410566
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe1f4], eax
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 0xe
test eax, 0xffff0000
jne 0x4108ee
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4106c8
push esi
push eax
lea ecx, [ebp - 0xe1f4]
call fcn.00407650
mov esi, dword [ebp - 0xe1f0]
lea eax, [ebp - 0xe1f4]
push eax
lea eax, [ebp - 0xdab0]
push eax
mov byte [ebp - 4], 0xf
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xe28c]
mov byte [ebp - 4], 0x10
call fcn.00442780
push str.process
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 0x11
call fcn.00442d00
lea ecx, [ebp - 0xe28c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe28c]
mov byte [ebp - 4], 0x10
call fcn.00442a70
cmp dword [ebp - 0xda9c], 0x10
mov byte [ebp - 4], 0xf
jb 0x410744
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
mov eax, dword [ebp - 0xe1f8]
mov ebx, dword [ebp - 0xe204]
lea ecx, [ebp - 0xe27c]
push dword [ebx + eax*4]
call fcn.004427c0
push 0x4da538
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 0x12
call fcn.00442d00
lea ecx, [ebp - 0xe27c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe27c]
mov byte [ebp - 4], 0xf
call fcn.00442a70
push 0
lea ecx, [ebp - 0xe25c]
call fcn.00442860
mov eax, dword [ebp - 0xe1f8]
mov byte [ebp - 4], 0x13
push dword [ebx + eax*4]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41091e
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe218], eax
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe218]
push str.enumModules_CreateToolhelp32Snapshot_moudules__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xe218]
push eax
lea eax, [ebp - 0xdab0]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xe26c]
mov byte [ebp - 4], 0x15
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 0x16
call fcn.00442d00
lea ecx, [ebp - 0xe26c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe26c]
mov byte [ebp - 4], 0x15
call fcn.00442a70
cmp dword [ebp - 0xda9c], 0x10
mov byte [ebp - 4], 0x14
jb 0x410862
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
lea eax, [ebp - 0xe23c]
push eax
lea ecx, [ebp - 0xe24c]
call fcn.00443340
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xe218]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4108a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xe25c]
mov byte [ebp - 4], 0xf
call fcn.00442a70
mov edx, dword [ebp - 0xe1f4]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4108d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 3
call fcn.00442a70
mov ecx, dword [ebp - 0xe1f8]
inc ecx
jmp 0x410566
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4108f7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0xe1f4]
call fcn.00409950
jmp 0x4106ce
lea eax, [ebp - 0xe1e8]
push eax
push ebx
mov dword [ebp - 0xe1e8], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x410b17
lea ecx, [ecx]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push eax
call fcn.004a7560
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0x800
push eax
push dword [ebp - 0xe1cc]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
jne 0x4109ba
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe20c], eax
mov byte [ebp - 4], 0x17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe20c]
push str.enumModules_GetModuleFileNameEx__d
push eax
call fcn.00406160
mov edx, dword [ebp - 0xe20c]
add esp, 0xc
jmp 0x410a87
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe214], eax
lea eax, [ebp - 0x1014]
mov byte [ebp - 4], 0x18
test eax, 0xffff0000
jne 0x410ae5
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x4109fa
push esi
push eax
lea ecx, [ebp - 0xe214]
call fcn.00407650
mov esi, dword [ebp - 0xe1f0]
lea eax, [ebp - 0xe214]
push eax
lea eax, [ebp - 0xdab0]
push eax
mov byte [ebp - 4], 0x19
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xdae0]
mov byte [ebp - 4], 0x1a
call fcn.00442780
push eax
lea ecx, [ebp - 0xe25c]
mov byte [ebp - 4], 0x1b
call fcn.00443340
lea ecx, [ebp - 0xdae0]
mov byte [ebp - 4], 0x1a
call fcn.00442a70
cmp dword [ebp - 0xda9c], 0x10
jb 0x410a60
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
mov ecx, dword [0x520340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
idiv dword [ebp - 0xe210]
cmp edx, 0xb
jne 0x410a81
dec ecx
mov dword [0x520340], ecx
mov edx, dword [ebp - 0xe214]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
mov byte [ebp - 4], 0x13
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410aa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xe1e8]
push eax
push ebx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x410940
mov eax, dword [0x520340]
imul eax, eax
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0x13
jne 0x410bde
lea eax, [ebp - 0xddc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x410bde
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410af0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0xe214]
call fcn.00409950
jmp 0x410a00
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe1ec], eax
mov byte [ebp - 4], 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe1ec]
push str.enumModules_CreateToolhelp32Snapshot_moudules__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xe1ec]
push eax
lea eax, [ebp - 0xdab0]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xe22c]
mov byte [ebp - 4], 0x1d
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 0x1e
call fcn.00442d00
lea ecx, [ebp - 0xe22c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe22c]
mov byte [ebp - 4], 0x1d
call fcn.00442a70
cmp dword [ebp - 0xda9c], 0x10
jb 0x410bba
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0xe1ec]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410bde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xe25c]
call fcn.004441b0
test eax, eax
je 0x410c0b
push str.modules
lea ecx, [ebp - 0xe23c]
call fcn.00442d00
lea ecx, [ebp - 0xe25c]
push ecx
mov ecx, eax
call fcn.00442b10
lea eax, [ebp - 0xe23c]
push eax
lea ecx, [ebp - 0xe24c]
call fcn.00443340
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push esi
call ebx
lea ecx, [ebp - 0xe25c]
mov byte [ebp - 4], 0xf
call fcn.00442a70
mov edx, dword [ebp - 0xe1f4]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410c5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xe23c]
mov byte [ebp - 4], 3
call fcn.00442a70
mov esi, dword [0x520340]
call fcn.00417830
test al, al
jne 0x410c83
inc esi
mov dword [0x520340], esi
mov ecx, dword [ebp - 0xe1f8]
inc ecx
jmp 0x410566
lea ecx, [ebp - 0xe24c]
call fcn.004437f0
test al, al
je 0x410cdf
push str.empty
lea ecx, [ebp - 0xe22c]
call fcn.00442820
push 0x4d968c
lea ecx, [ebp - 0xe24c]
mov byte [ebp - 4], 0x1f
call fcn.00442d00
lea ecx, [ebp - 0xe22c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe22c]
mov byte [ebp - 4], 3
call fcn.00442a70
mov edx, dword [ebp - 0xe208]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410d02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x410d0f
push esi
call fcn.004a5bbe
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xdad0]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0x24
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe1ec], esi
lea eax, [ebp - 0xe24c]
push eax
lea eax, [ebp - 0xdab0]
push eax
lea ecx, [ebp - 0xdad0]
mov byte [ebp - 4], 0x25
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x26
jb 0x410d66
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x410edf
xor ecx, ecx
jmp 0x410eed
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xe1ec], eax
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe1ec]
push str.enumModules_Process32First__d
push eax
call fcn.00406160
add esp, 0xc
lea eax, [ebp - 0xe1ec]
push eax
lea eax, [ebp - 0xdab0]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0xe22c]
mov byte [ebp - 4], 0xa
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0xe24c]
mov byte [ebp - 4], 0xb
call fcn.00442d00
lea ecx, [ebp - 0xe22c]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0xe22c]
mov byte [ebp - 4], 0xa
call fcn.00442a70
cmp dword [ebp - 0xda9c], 0x10
jb 0x410e2f
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xe1ec]
jmp 0x4101fe
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410ee4
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0xe210]
push eax
call fcn.0044ee90
add esp, 0x1c
mov eax, dword [eax]
lea ebx, [esi - 0x10]
lea edi, [eax - 0x10]
mov byte [ebp - 4], 0x27
cmp edi, ebx
je 0x410fc3
cmp dword [ebx + 0xc], 0
jl 0x410fae
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x410fae
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x410f4f
cmp ecx, dword [edi]
jne 0x410f4f
mov esi, edi
mov ecx, 1
lock xadd dword [eax], ecx
inc ecx
jmp 0x410f8c
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x410f63
call fcn.0040c2e0
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004a7195
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x410fa3
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0xe1ec], esi
jmp 0x410fc3
push dword [eax - 0xc]
lea ecx, [ebp - 0xe1ec]
push eax
call fcn.00409950
mov esi, dword [ebp - 0xe1ec]
mov edx, dword [ebp - 0xe210]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x26
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410fe7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xda9c], 0x10
mov byte [ebp - 4], 0x25
jb 0x411002
push dword [ebp - 0xdab0]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0xe21c]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x411023
call fcn.0040c2e0
mov dword [edi + 8], eax
call fcn.00417b60
test al, al
jne 0x41109f
xor eax, eax
push 0xca80
push eax
mov word [ebp - 0xda98], ax
lea eax, [ebp - 0xda96]
push eax
call fcn.004a7560
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test ebx, ebx
je 0x41107b
test edx, edx
je 0x41107b
lea eax, [edx + edi]
lea ecx, [ebp - 0xda98]
lea ecx, [ecx + eax*2]
lea eax, [edx + edi]
mov ax, word [ebp + eax*2 - 0xdbda]
inc ax
add ax, word [ecx - 2]
mov word [ecx], ax
inc edx
cmp edx, 0xa1
jl 0x411053
add edi, 0xa1
inc ebx
cmp edi, 0x6541
jl 0x411051
movsx eax, word [ebp - 0x1018]
mov dword [0x520340], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0x24
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4110bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0xdab8], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0xdad0], 0x4d9684
jb 0x4110e2
push dword [ebp - 0xdacc]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0xdad0]
mov dword [ebp - 0xdab8], 0xf
mov dword [ebp - 0xdabc], 0
mov byte [ebp - 0xdacc], 0
call fcn.00444ab0
lea ecx, [ebp - 0xe24c]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret