Function at 0x1005ca70
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4b0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
je 0x1005cab1
mov esi, dword [esi + 8]
test esi, esi
je 0x1005cab5
dec esi
cmp dword [0x100ba010], 0x80000000
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], eax
jne 0x1005cea7
jmp 0x1005cad3
test esi, esi
jne 0x1005ca92
xor esi, esi
cmp dword [0x100ba010], 0x80000000
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], eax
jne 0x1005cea7
mov eax, dword [0x100e08c0]
movzx eax, byte [eax]
push 8
push 0x520
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x1005cebf
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x1005cdc5
mov esi, eax
lea eax, [ebp - 0x4b8]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4bc], 0x428
lea eax, [ebp - 0x4bc]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
cmp eax, 1
jne 0x1005cdbf
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x10], esi
jmp 0x1005cb96
mov esi, dword [ebp - 0x10]
nop dword [eax + eax]
lea eax, [ebp - 0x4bc]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
jne 0x1005cdbf
mov ecx, 0x208
xor eax, eax
nop dword [eax]
cmp word [ebp + eax*2 - 0x29c], 0
je 0x1005cbb6
inc eax
add ecx, 0xfffffffe
jne 0x1005cba0
mov eax, 0x104
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.1003eaf0
add esp, 0xc
mov ebx, dword [ebp - 0x58]
mov edx, ebx
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x54]
call fcn.1005c810
add esp, 4
cmp dword [ebp - 0x6c], 0
je 0x1005cca1
mov eax, dword [ebp - 0x68]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x40
jb 0x1005cc90
movzx ecx, word [esi]
cmp ecx, 0x5a4d
jne 0x1005cc90
mov edi, dword [esi + 0x3c]
mov ecx, eax
sub ecx, edi
mov edx, edi
mov dword [ebp - 0x14], edi
jb 0x1005cc90
cmp ecx, 0x78
jb 0x1005cc90
mov ecx, dword [ebp - 0x14]
cmp dword [esi + ecx], 0x4550
jne 0x1005cc90
mov ecx, dword [ebp - 0x14]
movzx ecx, word [esi + ecx + 0x18]
cmp ecx, 0x10b
jne 0x1005cc90
mov ecx, dword [ebp - 0x14]
movzx ecx, word [esi + ecx + 0x14]
cmp ecx, 0x60
jb 0x1005cc90
mov edi, dword [ebp - 0x14]
lea edx, [edi + 0x78]
sub eax, edx
setb byte [ebp - 0x1c]
cmp edi, 0xffffff87
ja 0x1005cc90
cmp byte [ebp - 0x1c], 0
jne 0x1005cc90
add ecx, 0xffffffa0
cmp eax, ecx
jb 0x1005cc90
add edx, esi
mov eax, dword [ebp - 0x14]
push dword [esi + eax + 0x74]
push ecx
push edx
lea eax, [ebp - 0x6c]
push eax
call fcn.100635b0
add esp, 0x10
cmp dword [ebp - 0x6c], 0
je 0x1005ccbd
nop word cs:[eax + eax]
nop dword [eax]
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x1005cb80
push 1
push eax
push ebx
call fcn.10004ab0
add esp, 0xc
jmp 0x1005cb80
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x5c]
mov eax, dword [esi + eax + 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov eax, dword [0x100e08c0]
movzx eax, byte [eax]
push 4
push 8
call fcn.10004aa0
add esp, 8
test eax, eax
je 0x1005cecb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x34], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
push esi
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
cmp edi, 0x80000000
je 0x1005cb78
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x38]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], eax
cmp ecx, dword [ebp - 0x2c]
jne 0x1005cd77
lea ecx, [ebp - 0x2c]
call fcn.1001d7a0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
mov eax, ecx
inc ecx
shl eax, 5
mov dword [ebp - 0x20], ecx
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x7c]
movsd qword [edx + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x8c]
movsd xmm1, qword [ebp - 0x84]
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [ebp - 0x24], ecx
jmp 0x1005cb80
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
mov esi, dword [0x100ba010]
movsd xmm0, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x4c]
mov dword [ebp - 0x4b4], eax
mov eax, dword [ebp - 0x44]
cmp esi, 0x80000000
movsd qword [ebp - 0x4bc], xmm0
movsd qword [ebp - 0x4b0], xmm1
mov dword [ebp - 0x4a8], eax
je 0x1005ce74
mov ebx, dword [0x100ba018]
mov eax, dword [0x100ba014]
test ebx, ebx
mov dword [ebp - 0x18], eax
je 0x1005ce54
mov eax, dword [ebp - 0x18]
lea edi, [eax + 0x14]
jmp 0x1005ce26
add edi, 0x20
dec ebx
je 0x1005ce54
mov eax, dword [edi - 0x14]
test eax, eax
je 0x1005ce3b
push 1
push eax
push dword [edi - 0x10]
call fcn.10004ab0
add esp, 0xc
mov eax, dword [edi - 4]
test eax, eax
je 0x1005ce20
shl eax, 3
push 4
push eax
push dword [edi]
call fcn.10004ab0
add esp, 0xc
jmp 0x1005ce20
test esi, esi
je 0x1005ce69
shl esi, 5
push 4
push esi
push dword [ebp - 0x18]
call fcn.10004ab0
add esp, 0xc
lea ecx, [0x100ba01c]
call fcn.1000e410
movsd xmm0, qword [ebp - 0x4ac]
movsd xmm2, qword [ebp - 0x4bc]
movsd xmm1, qword [ebp - 0x4b4]
mov esi, dword [ebp - 0x40]
movsd qword [0x100ba020], xmm0
movsd qword [0x100ba018], xmm1
movsd qword [0x100ba010], xmm2
lea edx, [ebp - 0x94]
mov ecx, esi
call fcn.1005cfa0
add esp, 0x4b0
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x520
push 8
call fcn.1007e510
mov dword [ebp - 0x10], edi
push 8
push 4
call fcn.1007e530
add esp, 8
ud2