Function at 0x1004cfc3
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1006a742
call fcn.100575f8
sub esp, 0x190
mov eax, dword [0x10084500]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x14]
test eax, eax
mov dword [ebp - 0x15c], ebx
jne 0x1004cff2
xor al, al
jmp 0x1004d242
push esi
push edi
lea ecx, [ebp - 0x17c]
mov byte [ebp - 0x155], 0
call fcn.1004e3e3
and dword [ebp - 4], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
lea ecx, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x14], 0xf
call fcn.1000125d
test edi, edi
mov byte [ebp - 4], 1
je 0x1004d154
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006f920
push edi
call esi
push 0x1006f910
push edi
mov ebx, eax
call esi
push 0x1006f900
push edi
mov dword [ebp - 0x160], eax
call esi
push str.Module32First
push edi
mov dword [ebp - 0x164], eax
call esi
push str.Module32Next
push edi
mov dword [ebp - 0x168], eax
call esi
test ebx, ebx
je 0x1004d14e
cmp dword [ebp - 0x160], 0
je 0x1004d14e
cmp dword [ebp - 0x164], 0
je 0x1004d14e
cmp dword [ebp - 0x168], 0
je 0x1004d14e
test eax, eax
je 0x1004d14e
push 0
push 2
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1004d14e
lea eax, [ebp - 0x154]
push eax
push esi
mov dword [ebp - 0x154], 0x128
call dword [ebp - 0x160]
jmp 0x1004d11c
cmp dword [ebp - 0x14c], 0
je 0x1004d10e
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0x18], 0x10
jb 0x1004d0f2
mov eax, dword [eax + 4]
jmp 0x1004d0f5
add eax, 4
push 0
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x17c]
call fcn.1004ee5a
test al, al
jne 0x1004d122
lea eax, [ebp - 0x154]
push eax
push esi
call dword [ebp - 0x164]
test eax, eax
jne 0x1004d0d8
jmp 0x1004d147
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001619
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.10001619
mov byte [ebp - 0x155], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x15c]
cmp dword [ebp - 0x18], 0
jne 0x1004d171
cmp byte [ebp + 8], 0
jne 0x1004d21f
cmp byte [ebp - 0x155], 0
jne 0x1004d21f
push 0xffffffffffffffff
push dword [0x10089d1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [0x10089d24]
jmp 0x1004d1bd
cmp dword [ebx + 0x18], 0x10
jb 0x1004d192
mov ecx, dword [ebx + 4]
jmp 0x1004d195
lea ecx, [ebx + 4]
cmp dword [esi + 0x18], 0x10
jb 0x1004d1a0
mov eax, dword [esi + 4]
jmp 0x1004d1a3
lea eax, [esi + 4]
push 0
push ecx
push eax
lea ecx, [ebp - 0x17c]
call fcn.1004ee5a
test al, al
jne 0x1004d259
add esi, 0x20
cmp esi, dword [0x10089d28]
jne 0x1004d187
cmp byte [ebp + 8], 0
je 0x1004d213
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1004d1d7
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x19c]
call fcn.10001636
mov al, byte [ebp - 0x155]
mov byte [ebp - 0x180], al
lea eax, [ebp - 0x19c]
push eax
mov ecx, 0x10089d20
mov byte [ebp - 4], 2
call fcn.1004cf83
push 0
push 1
lea ecx, [ebp - 0x19c]
call fcn.10001293
push dword [0x10089d1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.1004e3f6
mov al, byte [ebp - 0x155]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100568ae
leave
ret 8
cmp byte [ebp + 8], 0
jne 0x1004d268
cmp byte [ebp - 0x155], 1
je 0x1004d213
mov al, byte [ebp - 0x155]
mov byte [esi + 0x1c], al
jmp 0x1004d213