Function at 0x511190
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x54]
mov ebx, eax
test ebx, ebx
jne 0x5111bd
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00510f40
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.00512e20
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x5111dc
push 0x5ca19c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
push 2
push ebx
call eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x511381
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
call fcn.00512e20
mov dword [ebp - 8], eax
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x511229
push 0x5ca1f4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x2c], eax
mov ecx, eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call ecx
cmp dword [ebp - 4], 0
je 0x511381
cmp dword [ebp + 0x10], 0
je 0x5112c2
push 4
push ebx
call fcn.00512e20
push eax
call fcn.00512dd0
mov eax, dword [esi + 0x20]
mov ecx, edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x10]
call fcn.00510700
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.00512e20
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x70]
test ecx, ecx
jne 0x5112ab
push 0x5ca31c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x70], eax
mov ecx, eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push ebx
call ecx
push dword [ebp + 0x10]
call fcn.00512e20
push eax
call fcn.00512d30
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x511358
cmp dword [eax], 0
jle 0x511358
mov esi, dword [esi + 0x34]
mov eax, 4
test esi, esi
cmove esi, eax
call fcn.00512e20
push esi
push ebx
push eax
call fcn.00512dd0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x2c]
mov ecx, edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
call fcn.00510ae0
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
call fcn.00512e20
mov esi, eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x511342
push 0x5ca2c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x5c], eax
mov ecx, eax
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push esi
push ebx
call ecx
push esi
call fcn.00512e20
push eax
call fcn.00512d60
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
call fcn.00512e20
mov esi, eax
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x51137c
push 0x5ca280
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x4c], eax
push dword [ebp + 0x10]
call eax
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0x58]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc