Function at 0x503f30
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 0x503f5d
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00503ce0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.00505b80
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x503f7c
push 0x5e1ff4
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 0x504121
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.00505b80
mov dword [ebp - 8], eax
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x503fc9
push 0x5e204c
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 0x504121
cmp dword [ebp + 0x10], 0
je 0x504062
push 4
push ebx
call fcn.00505b80
push eax
call fcn.00505b30
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.005034a0
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.00505b80
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x70]
test ecx, ecx
jne 0x50404b
push 0x5e2174
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.00505b80
push eax
call fcn.00505a90
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5040f8
cmp dword [eax], 0
jle 0x5040f8
mov esi, dword [esi + 0x34]
mov eax, 4
test esi, esi
cmove esi, eax
call fcn.00505b80
push esi
push ebx
push eax
call fcn.00505b30
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.00503880
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
call fcn.00505b80
mov esi, eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x5040e2
push 0x5e211c
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.00505b80
push eax
call fcn.00505ac0
mov eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
call fcn.00505b80
mov esi, eax
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x50411c
push 0x5e20d8
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