Function at 0x1099f62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
je 0x1099f81
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x1099f84
mov edi, dword [ebp + 0xc]
cmp dword [0x10ec504], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jne 0x109a472
call fcn.01099ebd
test ax, ax
jne 0x109a472
cmp dword [0x10ec4f0], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x1099fc4
push 0x1011968
call esi
mov dword [0x10ec4f8], eax
cmp dword [0x10ec500], ebx
jne 0x1099fd8
push 0x101194c
call esi
mov dword [0x10ec500], eax
cmp dword [0x10ec4f8], ebx
je 0x109a32d
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10ec4f0], eax
je 0x109a32d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101193c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 4], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 4], ebx
jne 0x109a039
push 0x101192c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 4], eax
push 0x101069c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 8], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 8], ebx
jne 0x109a06f
push 0x1011918
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 8], eax
push 0x1010680
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x10], ebx
jne 0x109a0a5
push 0x10118fc
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x10], eax
push 0x1010634
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x20], ebx
jne 0x109a0db
push 0x10118e4
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x20], eax
push 0x101064c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x14], ebx
jne 0x109a111
push 0x10118d0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x14], eax
push 0x1010670
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x18], ebx
jne 0x109a147
push 0x10118c0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x18], eax
push 0x1010660
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x1c], ebx
jne 0x109a17d
push 0x10118b0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x1c], eax
push 0x101061c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x24], ebx
jne 0x109a1b3
push 0x1011898
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x24], eax
push 0x1010604
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x2c], ebx
jne 0x109a1e9
push 0x1011888
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x2c], eax
push 0x1010610
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x28], ebx
jne 0x109a21f
push 0x101187c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x28], eax
push 0x10105a0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x30], ebx
jne 0x109a255
push 0x101185c
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x30], eax
push 0x10105f0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x34], ebx
jne 0x109a28b
push 0x1011848
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x34], eax
push 0x10105dc
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x3c], ebx
jne 0x109a2c1
push 0x1011834
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x3c], eax
push 0x10105c0
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x40], ebx
jne 0x109a2f7
push 0x1011818
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x40], eax
push 0x1010590
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10ec4f0]
cmp dword [eax + 0x44], ebx
jne 0x109a32d
push 0x1011808
push dword [0x10ec4f8]
call esi
mov ecx, dword [0x10ec4f0]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x24], ebx
jne 0x109a47c
mov eax, dword [0x10ec4f0]
cmp eax, ebx
mov esi, 0x10ec9d0
je 0x109a35a
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109a35a
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
jmp 0x109a35d
mov dword [ebp - 0xc], ebx
cmp dword [0x10ec4f0], ebx
je 0x109a47c
or byte [edi + 0x62], 1
cmp dword [ebp - 0xc], ebx
mov ax, word [edi + 0x62]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x109a384
or ax, 2
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109a47c
cmp dword [eax + 4], ebx
je 0x109a47c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x10]
push dword [0x10ec4f0]
call fcn.01099d9f
cmp eax, ebx
jne 0x109a3ce
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10ec4f0]
call fcn.01099d77
jmp 0x109a3d8
mov dword [0x10ec504], 1
cmp eax, ebx
jne 0x109a440
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x109a440
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109a40c
sub ecx, 0x3e
jne 0x109a423
add eax, 2
push ebx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 0x58]
add esi, 0x28
jmp 0x109a41e
add eax, 2
push 1
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 0x58]
add esi, 0x24
call fcn.01099e4c
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [edi + eax + 2]
mov eax, dword [ebp + 8]
shr eax, 1
dec eax
cmp edi, eax
pop ecx
jb 0x109a3e6
cmp dword [ebp - 4], ebx
je 0x109a45a
mov eax, dword [0x10ec4f0]
cmp eax, ebx
je 0x109a45a
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109a45a
push dword [ebp - 4]
call eax
cmp dword [ebp - 8], ebx
je 0x109a47c
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10ec4f0]
call fcn.01099e03
jmp 0x109a47c
mov dword [0x10ec504], 1
pop edi
pop esi
pop ebx
leave
ret 8