Function at 0x100198a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b7f40]
mov dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x100198d3
push eax
push 0x100a2ea0
call fcn.1001bb00
mov dword [0x100b7f40], eax
test eax, eax
je 0x10019b5a
cmp dword [0x100b7f44], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x100198fc
push 0x100a3040
push eax
call esi
mov dword [0x100b7f44], eax
test eax, eax
je 0x10019b5a
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f48], 0
jne 0x1001991f
push 0x100a3060
push eax
call esi
mov dword [0x100b7f48], eax
test eax, eax
je 0x10019b5a
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f50], 0
jne 0x10019942
push 0x100a2ec0
push eax
call esi
mov dword [0x100b7f50], eax
test eax, eax
je 0x10019b5a
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f4c], 0
jne 0x10019965
push 0x100a3080
push eax
call esi
mov dword [0x100b7f4c], eax
test eax, eax
je 0x10019b5a
mov eax, dword [0x100b7f40]
cmp dword [0x100b7f58], 0
jne 0x10019983
push 0x100a2ef0
push eax
call esi
mov dword [0x100b7f58], eax
test eax, eax
je 0x10019b5a
push 6
push 0
push 0
push 0
call dword [0x100b7f44]
mov esi, eax
mov dword [ebp + 0x10], esi
cmp esi, 0xffffffff
je 0x10019b5a
mov dword [ebx + 4], 0
push edi
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push 0
mov dword [ebx + 0x18], 0
push esi
mov dword [ebx], 0x1c
call dword [0x100b7f48]
test eax, eax
je 0x10019b35
mov ecx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], edi
cmp eax, 1
jae 0x10019aed
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push 2
push ebx
push esi
call dword [0x100b7f50]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10019ae3
lea esi, [eax + 4]
push esi
push 0x40
call dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x10019ae0
push 0
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
push 2
push ebx
push esi
call dword [0x100b7f50]
test eax, eax
je 0x10019ae3
mov eax, edi
cmp word [eax], 0
je 0x10019acc
mov eax, dword [ebp + 8]
mov esi, dword [eax*4 + 0x100b7004]
cmp word [esi], 0
je 0x10019aa6
push esi
push edi
call fcn.10055b45
add esp, 8
test eax, eax
jne 0x10019aa0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10019a84
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x10019a71
jmp 0x10019aa6
cmp word [esi], 0
jne 0x10019acc
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10019ab0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x10019a61
jmp 0x10019add
mov eax, dword [ebp - 4]
mov ecx, 1
cmp word [edi], ax
cmovne eax, ecx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x10]
push edi
call dword [ebp - 0x18]
cmp dword [ebp - 4], 1
je 0x10019b47
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], 0
inc eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push eax
mov dword [ebx + 0x18], 0
push esi
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x1c
call dword [0x100b7f48]
test eax, eax
jne 0x100199f4
push esi
call dword [0x100b7f58]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, 1
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc