Function at 0x109a488
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
je 0x109a4a7
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x109a4aa
mov edi, dword [ebp + 0xc]
cmp dword [0x10ec508], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jne 0x109aa36
call fcn.01099ebd
test ax, ax
jne 0x109aa36
cmp dword [0x10ec4f4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x109a4ea
push 0x1011b84
call esi
mov dword [0x10ec4fc], eax
cmp dword [0x10ec500], ebx
jne 0x109a4fe
push 0x101194c
call esi
mov dword [0x10ec500], eax
cmp dword [0x10ec4fc], ebx
je 0x109a8bf
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10ec4f4], eax
je 0x109a8bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011b6c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 4], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 4], ebx
jne 0x109a55f
push 0x1011b54
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 4], eax
push 0x101069c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0xc], ebx
jne 0x109a595
push 0x1011b3c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0xc], eax
push 0x1010680
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x10], ebx
jne 0x109a5cb
push 0x1011b1c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x10], eax
push 0x1010634
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x20], ebx
jne 0x109a601
push 0x1011b00
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x20], eax
push 0x101064c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x14], ebx
jne 0x109a637
push 0x1011ae8
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x14], eax
push 0x1010670
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x18], ebx
jne 0x109a66d
push 0x1011ad4
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x18], eax
push 0x1010660
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x1c], ebx
jne 0x109a6a3
push 0x1011ac0
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x1c], eax
push 0x101061c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x24], ebx
jne 0x109a6d9
push 0x1011aa4
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x24], eax
push 0x1010604
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x2c], ebx
jne 0x109a70f
push 0x1011a90
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x2c], eax
push 0x1010610
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x28], ebx
jne 0x109a745
push 0x1011a7c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x28], eax
push 0x10105a0
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x30], ebx
jne 0x109a77b
push 0x1011a58
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x30], eax
push 0x10105f0
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x38], ebx
jne 0x109a7b1
push 0x1011a40
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x38], eax
push 0x10105dc
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x3c], ebx
jne 0x109a7e7
push 0x1011a28
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x3c], eax
push 0x10105c0
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x40], ebx
jne 0x109a81d
push 0x1011a08
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x40], eax
push 0x1010590
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x44], ebx
jne 0x109a853
push 0x10119f4
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x44], eax
push 0x10119d8
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x48], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x48], ebx
jne 0x109a889
push 0x10119b4
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x48], eax
push 0x101199c
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x10ec4f4]
cmp dword [eax + 0x4c], ebx
jne 0x109a8bf
push 0x1011984
push dword [0x10ec4fc]
call esi
mov ecx, dword [0x10ec4f4]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x2c], ebx
jne 0x109aa40
mov eax, dword [0x10ec4f4]
cmp eax, ebx
mov esi, 0x10ec9d4
je 0x109a8ec
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109a8ec
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
jmp 0x109a8ef
mov dword [ebp - 0x10], ebx
cmp dword [0x10ec4f4], ebx
je 0x109aa40
or byte [edi + 0x62], 4
cmp dword [ebp - 0x10], ebx
mov ax, word [edi + 0x62]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
je 0x109a919
or ax, 8
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109aa40
cmp dword [eax + 4], ebx
je 0x109aa40
xor edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x109a950
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push edi
push ebx
push esi
push dword [ebp - 0xc]
push dword [0x10ec4f4]
call fcn.01099ccb
cmp eax, ebx
je 0x109a96e
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0xc]
push dword [0x10ec4f4]
call fcn.01099d9f
cmp eax, ebx
mov dword [ebp - 0x14], edi
jne 0x109a989
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10ec4f4]
call fcn.01099d77
jmp 0x109a98f
mov dword [0x10ec508], edi
cmp eax, ebx
jne 0x109a9f7
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x109a9f7
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109a9c3
sub ecx, 0x3e
jne 0x109a9da
add eax, 2
push ebx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 0x58]
add esi, 0x30
jmp 0x109a9d5
add eax, 2
push 1
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x5c]
mov esi, dword [eax + 0x58]
add esi, 0x2c
call fcn.01099e4c
mov eax, dword [ebp - 8]
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 0x109a99d
cmp dword [ebp - 8], ebx
je 0x109aa11
mov eax, dword [0x10ec4f4]
cmp eax, ebx
je 0x109aa11
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109aa11
push dword [ebp - 8]
call eax
cmp dword [ebp - 4], ebx
je 0x109aa40
cmp word [ebp - 0x14], bx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10ec4f4]
je 0x109aa2f
call fcn.01099e03
jmp 0x109aa40
call fcn.01099d38
jmp 0x109aa40
mov dword [0x10ec508], 1
pop edi
pop esi
pop ebx
leave
ret 8