Function at 0x1004b90
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1009030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x20], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 5
pop ecx
mov esi, 0x1001abc
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push 0x48
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
push 0
push 0x10092b0
mov dword [ebp - 0x28], eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 4
pop edi
push edi
push 0x1001aa4
push 0x1001a58
call fcn.010049a1
mov edi, eax
test edi, edi
jl 0x1004e6a
cmp dword [ebp - 0x20], 1
jb 0x1004e66
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10092f4], eax
test eax, eax
jne 0x1004c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1004e64
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004e64
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001a44
push eax
call esi
mov dword [0x10092e0], eax
test eax, eax
je 0x1004c16
call eax
test eax, eax
jne 0x1004c68
push dword [0x10092f4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x10092f4], 0
jmp 0x1004e66
push 0x1001a34
push dword [0x10092f4]
call esi
xor edi, edi
mov dword [0x10092b0], eax
cmp eax, edi
jne 0x1004c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jmp 0x1004c1e
push 0x1001a28
push dword [0x10092f4]
call esi
mov dword [0x10092b4], eax
cmp eax, edi
je 0x1004c80
push 0x1001a18
push dword [0x10092f4]
call esi
mov dword [0x10092b8], eax
cmp eax, edi
je 0x1004c80
push 0x1001a08
push dword [0x10092f4]
call esi
mov dword [0x10092bc], eax
cmp eax, edi
je 0x1004c80
push 0x10019ec
push dword [0x10092f4]
call esi
mov dword [0x10092c0], eax
cmp eax, edi
je 0x1004c80
push 0x10019e4
push dword [0x10092f4]
call esi
mov dword [0x10092c4], eax
cmp eax, edi
je 0x1004c80
push 0x10019d4
push dword [0x10092f4]
call esi
mov dword [0x10092c8], eax
cmp eax, edi
je 0x1004c80
push 0x10019bc
push dword [0x10092f4]
call esi
mov dword [0x10092cc], eax
cmp eax, edi
je 0x1004c80
push 0x10019ac
push dword [0x10092f4]
call esi
mov dword [0x10092d0], eax
cmp eax, edi
je 0x1004c80
push 0x1001994
push dword [0x10092f4]
call esi
mov dword [0x10092d4], eax
cmp eax, edi
je 0x1004c80
push 0x100197c
push dword [0x10092f4]
call esi
mov dword [0x10092d8], eax
cmp eax, edi
je 0x1004c80
push 0x1001968
push dword [0x10092f4]
call esi
mov dword [0x10092dc], eax
cmp eax, edi
je 0x1004c80
push 0x1001958
push dword [0x10092f4]
call esi
mov dword [0x10092e4], eax
cmp eax, edi
je 0x1004c80
push 0x1001940
push dword [0x10092f4]
call esi
mov dword [0x10092e8], eax
cmp eax, edi
je 0x1004c80
push 0x100192c
push dword [0x10092f4]
call esi
mov dword [0x10092ec], eax
cmp eax, edi
je 0x1004c80
push 0x1001918
push dword [0x10092f4]
call esi
mov dword [0x10092f0], eax
cmp eax, edi
je 0x1004c80
push 0x24c
push edi
push 0x1009060
mov dword [0x1009510], 1
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [0x1009060], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [0x1009078], edi
mov dword [0x100907c], edi
mov dword [0x1009064], eax
call fcn.01004b25
push dword [ebp - 0x24]
mov dword [0x1009080], eax
call fcn.01004b25
push dword [ebp - 0x28]
mov dword [0x1009084], eax
call fcn.01004b25
push 0x1009068
mov dword [0x1009088], eax
call fcn.0100372c
mov edi, eax
test edi, edi
jge 0x1004e81
mov eax, dword [0x10092f4]
test eax, eax
je 0x1004e81
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x10092f4], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006849
leave
ret 0x14