Function at 0x1004af51
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1a73
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x100eedbc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
cmp dword [ebx], 0
je 0x1004af87
mov al, 1
jmp 0x1004afc4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.1004aeb1
cmp byte [ebp - 0x2c], 0
je 0x1004afc2
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x1004afd4
cmp byte [ebp - 0x2c], 0
je 0x1004afc2
lea ecx, [ebp - 0x44]
call fcn.10042adf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 0x10013e74
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], eax
test eax, eax
jne 0x1004aff0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1004afb4
push 0x10013e84
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 8], eax
test eax, eax
je 0x1004afe7
push 0x10013e94
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x1004afe7
push 0x10013eb0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x1004afe7
push 0x10013ec0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x1004afe7
push 0x10013edc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1004afe7
push 0x10013eec
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x1004afe7
push 0x10013efc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x20], eax
test eax, eax
je 0x1004afe7
push 0x10013f14
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x1004afe7
push 0x10013f2c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x28], eax
test eax, eax
je 0x1004afe7
push 0x10013f48
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x1004afe7
push 0x10013f58
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x1004afe7
push 0x10013f78
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x34], eax
test eax, eax
je 0x1004afe7
push 0x10013f98
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x1004afe7
push 0x10013fb8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x3c], eax
test eax, eax
je 0x1004afe7
push 0x10013fcc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1004afe7
push 0x10013fe8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x44], eax
test eax, eax
je 0x1004afe7
push 0x10014008
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x48], eax
test eax, eax
je 0x1004afe7
push 0x10014028
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x1004afe7
push 0x10014048
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x50], eax
test eax, eax
je 0x1004afe7
push 0x10014064
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x54], eax
test eax, eax
je 0x1004afe7
push 0x1001407c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x58], eax
test eax, eax
je 0x1004afe7
mov edi, dword [ebx]
lea eax, [ebp - 0x14]
and dword [ebx], 0
cmp ebx, eax
je 0x1004b1d3
push esi
mov ecx, ebx
call fcn.1004c25a
and dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x14]
call fcn.1004c25a
cmp dword [ebp - 0x14], 0
je 0x1004b1eb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x2c], 0
je 0x1004af83
lea ecx, [ebp - 0x44]
call fcn.10042adf
jmp 0x1004af83