Function at 0x109a0f0
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 0x109a10f
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x109a112
mov edi, dword [ebp + 0xc]
cmp dword [0x10ec50c], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jne 0x109a600
call fcn.0109a04b
test ax, ax
jne 0x109a600
cmp dword [0x10ec4f8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x109a152
push 0x1011980
call esi
mov dword [0x10ec500], eax
cmp dword [0x10ec508], ebx
jne 0x109a166
push 0x1011964
call esi
mov dword [0x10ec508], eax
cmp dword [0x10ec500], ebx
je 0x109a4bb
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10ec4f8], eax
je 0x109a4bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011954
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 4], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 4], ebx
jne 0x109a1c7
push 0x1011944
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 4], eax
push 0x10106b4
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 8], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 8], ebx
jne 0x109a1fd
push 0x1011930
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 8], eax
push 0x1010698
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x10], ebx
jne 0x109a233
push 0x1011914
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x10], eax
push 0x101064c
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x20], ebx
jne 0x109a269
push 0x10118fc
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x20], eax
push 0x1010664
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x14], ebx
jne 0x109a29f
push 0x10118e8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x14], eax
push 0x1010688
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x18], ebx
jne 0x109a2d5
push 0x10118d8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x18], eax
push 0x1010678
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x1c], ebx
jne 0x109a30b
push 0x10118c8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x1c], eax
push 0x1010634
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x24], ebx
jne 0x109a341
push 0x10118b0
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x24], eax
push 0x101061c
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x2c], ebx
jne 0x109a377
push 0x10118a0
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x2c], eax
push 0x1010628
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x28], ebx
jne 0x109a3ad
push 0x1011894
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x28], eax
push 0x10105b8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x30], ebx
jne 0x109a3e3
push 0x1011874
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x30], eax
push 0x1010608
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x34], ebx
jne 0x109a419
push 0x1011860
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x34], eax
push 0x10105f4
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x3c], ebx
jne 0x109a44f
push 0x101184c
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x3c], eax
push 0x10105d8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x40], ebx
jne 0x109a485
push 0x1011830
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x40], eax
push 0x10105a8
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10ec4f8]
cmp dword [eax + 0x44], ebx
jne 0x109a4bb
push 0x1011820
push dword [0x10ec500]
call esi
mov ecx, dword [0x10ec4f8]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x24], ebx
jne 0x109a60a
mov eax, dword [0x10ec4f8]
cmp eax, ebx
mov esi, 0x10ec9d8
je 0x109a4e8
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109a4e8
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
jmp 0x109a4eb
mov dword [ebp - 0xc], ebx
cmp dword [0x10ec4f8], ebx
je 0x109a60a
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 0x109a512
or ax, 2
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109a60a
cmp dword [eax + 4], ebx
je 0x109a60a
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x10]
push dword [0x10ec4f8]
call fcn.01099f2d
cmp eax, ebx
jne 0x109a55c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10ec4f8]
call fcn.01099f05
jmp 0x109a566
mov dword [0x10ec50c], 1
cmp eax, ebx
jne 0x109a5ce
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x109a5ce
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109a59a
sub ecx, 0x3e
jne 0x109a5b1
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 0x109a5ac
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.01099fda
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 0x109a574
cmp dword [ebp - 4], ebx
je 0x109a5e8
mov eax, dword [0x10ec4f8]
cmp eax, ebx
je 0x109a5e8
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109a5e8
push dword [ebp - 4]
call eax
cmp dword [ebp - 8], ebx
je 0x109a60a
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10ec4f8]
call fcn.01099f91
jmp 0x109a60a
mov dword [0x10ec50c], 1
pop edi
pop esi
pop ebx
leave
ret 8