Function at 0x4bf220
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 esi, dword [ecx + 8]
cmp dword [0x4ff010], 0x80000000
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
jne 0x4bf5dc
movzx eax, byte [0x537118]
xor ecx, ecx
mov edx, 0x520
call fcn.004e4370
test eax, eax
je 0x4bf5fc
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x20], 0
push 0
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x4bf505
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 0x4bf4ff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 4
jmp 0x4bf346
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
mov eax, ecx
inc ecx
shl eax, 5
mov dword [ebp - 0x1c], ecx
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x6c]
movsd qword [edx + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x7c]
movsd xmm1, qword [ebp - 0x74]
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [ebp - 0x20], ecx
nop dword [eax]
lea eax, [ebp - 0x4bc]
push eax
push esi
call sub.kernel32.dll_Module32NextW
cmp eax, 1
jne 0x4bf4ff
mov ecx, 0x208
xor eax, eax
nop dword [eax]
cmp word [ebp + eax*2 - 0x29c], 0
je 0x4bf366
inc eax
add ecx, 0xfffffffe
jne 0x4bf350
mov eax, 0x104
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.004bdd20
add esp, 4
mov ebx, dword [ebp - 0x58]
mov edx, ebx
lea ecx, [ebp - 0x94]
push dword [ebp - 0x54]
call fcn.004bf750
add esp, 4
cmp dword [ebp - 0x94], 0
je 0x4bf3fe
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
cmp ecx, 0x40
mov dword [ebp - 0x10], eax
jb 0x4bf3f0
movzx eax, word [edi]
cmp eax, 0x5a4d
jne 0x4bf3f0
mov eax, dword [edi + 0x3c]
mov edx, ecx
sub edx, eax
jb 0x4bf3f0
cmp edx, 0x78
jb 0x4bf3f0
cmp dword [edi + eax], 0x4550
jne 0x4bf3f0
movzx edx, word [edi + eax + 0x18]
cmp edx, 0x10b
jne 0x4bf3f0
movzx edx, word [edi + eax + 0x14]
cmp edx, 0x60
jae 0x4bf419
nop dword [eax]
push edi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x5c], 0
je 0x4bf330
mov ecx, ebx
mov edx, 1
call fcn.0044dba0
jmp 0x4bf330
mov dword [ebp - 0x18], edx
lea edx, [eax + 0x78]
sub ecx, edx
mov edx, dword [ebp - 0x18]
setb byte [ebp - 0x14]
cmp eax, 0xffffff87
ja 0x4bf3f0
cmp byte [ebp - 0x14], 0
jne 0x4bf3f0
add edx, 0xffffffa0
cmp ecx, edx
jb 0x4bf3f0
mov ecx, dword [edi + eax + 0x74]
cmp ecx, 0x1fffffff
ja 0x4bf3f0
shl ecx, 3
cmp ecx, edx
ja 0x4bf3f0
mov eax, dword [edi + eax + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
movzx eax, byte [0x537118]
xor ecx, ecx
mov edx, 8
call fcn.004e4370
test eax, eax
je 0x4bf60b
mov edx, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
push edi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
cmp eax, 0x80000000
je 0x4bf330
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ebx
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x28]
jne 0x4bf2ef
lea ecx, [ebp - 0x28]
call fcn.004bf990
jmp 0x4bf2e9
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x20]
mov esi, dword [0x4ff010]
movsd xmm0, qword [ebp - 0x28]
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 0x4bf5a9
mov ebx, dword [0x4ff018]
mov eax, dword [0x4ff014]
test ebx, ebx
mov dword [ebp - 0x10], eax
je 0x4bf58d
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
jmp 0x4bf566
add edi, 0x20
dec ebx
je 0x4bf58d
cmp dword [edi - 0x14], 0
je 0x4bf579
mov ecx, dword [edi - 0x10]
mov edx, 1
call fcn.0044dba0
cmp dword [edi - 4], 0
je 0x4bf560
mov ecx, dword [edi]
mov edx, 4
call fcn.0044dba0
jmp 0x4bf560
test esi, esi
je 0x4bf59e
mov ecx, dword [ebp - 0x10]
mov edx, 4
call fcn.0044dba0
lea ecx, [0x4ff01c]
call fcn.004bfad0
movsd xmm0, qword [ebp - 0x4ac]
movsd xmm2, qword [ebp - 0x4bc]
movsd xmm1, qword [ebp - 0x4b4]
mov esi, dword [ebp - 0x40]
movsd qword [0x4ff020], xmm0
movsd qword [0x4ff018], xmm1
movsd qword [0x4ff010], xmm2
xor eax, eax
sub esi, 1
cmovb esi, eax
lea edx, [ebp - 0x84]
mov ecx, esi
call fcn.004bfb70
add esp, 0x4b0
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 8
mov edx, 0x520
call fcn.0041ec50
mov ecx, 4
mov edx, 8
call fcn.0041ecb0
ud2