Function at 0x109a616
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 0x109a635
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x109a638
mov edi, dword [ebp + 0xc]
cmp dword [0x10ec510], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jne 0x109abc4
call fcn.0109a04b
test ax, ax
jne 0x109abc4
cmp dword [0x10ec4fc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x109a678
push 0x1011b9c
call esi
mov dword [0x10ec504], eax
cmp dword [0x10ec508], ebx
jne 0x109a68c
push 0x1011964
call esi
mov dword [0x10ec508], eax
cmp dword [0x10ec504], ebx
je 0x109aa4d
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10ec4fc], eax
je 0x109aa4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011b84
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 4], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 4], ebx
jne 0x109a6ed
push 0x1011b6c
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 4], eax
push 0x10106b4
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0xc], ebx
jne 0x109a723
push 0x1011b54
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0xc], eax
push 0x1010698
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x10], ebx
jne 0x109a759
push 0x1011b34
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x10], eax
push 0x101064c
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x20], ebx
jne 0x109a78f
push 0x1011b18
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x20], eax
push 0x1010664
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x14], ebx
jne 0x109a7c5
push 0x1011b00
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x14], eax
push 0x1010688
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x18], ebx
jne 0x109a7fb
push 0x1011aec
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x18], eax
push 0x1010678
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x1c], ebx
jne 0x109a831
push 0x1011ad8
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x1c], eax
push 0x1010634
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x24], ebx
jne 0x109a867
push 0x1011abc
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x24], eax
push 0x101061c
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x2c], ebx
jne 0x109a89d
push 0x1011aa8
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x2c], eax
push 0x1010628
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x28], ebx
jne 0x109a8d3
push 0x1011a94
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x28], eax
push 0x10105b8
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x30], ebx
jne 0x109a909
push 0x1011a70
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x30], eax
push 0x1010608
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x38], ebx
jne 0x109a93f
push 0x1011a58
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x38], eax
push 0x10105f4
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x3c], ebx
jne 0x109a975
push 0x1011a40
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x3c], eax
push 0x10105d8
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x40], ebx
jne 0x109a9ab
push 0x1011a20
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x40], eax
push 0x10105a8
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x44], ebx
jne 0x109a9e1
push 0x1011a0c
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x44], eax
push 0x10119f0
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x48], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x48], ebx
jne 0x109aa17
push 0x10119cc
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x48], eax
push 0x10119b4
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x10ec4fc]
cmp dword [eax + 0x4c], ebx
jne 0x109aa4d
push 0x101199c
push dword [0x10ec504]
call esi
mov ecx, dword [0x10ec4fc]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x2c], ebx
jne 0x109abce
mov eax, dword [0x10ec4fc]
cmp eax, ebx
mov esi, 0x10ec9dc
je 0x109aa7a
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109aa7a
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
jmp 0x109aa7d
mov dword [ebp - 0x10], ebx
cmp dword [0x10ec4fc], ebx
je 0x109abce
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 0x109aaa7
or ax, 8
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109abce
cmp dword [eax + 4], ebx
je 0x109abce
xor edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x109aade
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push edi
push ebx
push esi
push dword [ebp - 0xc]
push dword [0x10ec4fc]
call fcn.01099e59
cmp eax, ebx
je 0x109aafc
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0xc]
push dword [0x10ec4fc]
call fcn.01099f2d
cmp eax, ebx
mov dword [ebp - 0x14], edi
jne 0x109ab17
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10ec4fc]
call fcn.01099f05
jmp 0x109ab1d
mov dword [0x10ec510], edi
cmp eax, ebx
jne 0x109ab85
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x109ab85
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109ab51
sub ecx, 0x3e
jne 0x109ab68
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 0x109ab63
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.01099fda
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 0x109ab2b
cmp dword [ebp - 8], ebx
je 0x109ab9f
mov eax, dword [0x10ec4fc]
cmp eax, ebx
je 0x109ab9f
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109ab9f
push dword [ebp - 8]
call eax
cmp dword [ebp - 4], ebx
je 0x109abce
cmp word [ebp - 0x14], bx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10ec4fc]
je 0x109abbd
call fcn.01099f91
jmp 0x109abce
call fcn.01099ec6
jmp 0x109abce
mov dword [0x10ec510], 1
pop edi
pop esi
pop ebx
leave
ret 8