Function at 0x108e512
Capabilities:
Link many functions at runtime

Disassembly:
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 0x108e52f
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x108e532
mov edi, dword [ebp + 0xc]
cmp dword [0x10dccbc], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jne 0x108ea20
call fcn.0108e493
test ax, ax
jne 0x108ea20
cmp dword [0x10dcca8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x108e572
push 0x1011908
call esi
mov dword [0x10dccb0], eax
cmp dword [0x10dccb8], ebx
jne 0x108e586
push 0x10118ec
call esi
mov dword [0x10dccb8], eax
cmp dword [0x10dccb0], ebx
je 0x108e8db
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10dcca8], eax
je 0x108e8db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10118dc
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 4], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 4], ebx
jne 0x108e5e7
push 0x10118cc
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 4], eax
push 0x1010638
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 8], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 8], ebx
jne 0x108e61d
push 0x10118b8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 8], eax
push 0x101061c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x10], ebx
jne 0x108e653
push 0x101189c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x10], eax
push 0x10105d0
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x20], ebx
jne 0x108e689
push 0x1011884
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x20], eax
push 0x10105e8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x14], ebx
jne 0x108e6bf
push 0x1011870
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x14], eax
push 0x101060c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x18], ebx
jne 0x108e6f5
push 0x1011860
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x18], eax
push 0x10105fc
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x1c], ebx
jne 0x108e72b
push 0x1011850
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x1c], eax
push 0x10105b8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x24], ebx
jne 0x108e761
push 0x1011838
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x24], eax
push 0x10105a0
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x2c], ebx
jne 0x108e797
push 0x1011828
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x2c], eax
push 0x10105ac
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x28], ebx
jne 0x108e7cd
push 0x101181c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x28], eax
push 0x101053c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x30], ebx
jne 0x108e803
push 0x10117fc
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x30], eax
push 0x101058c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x34], ebx
jne 0x108e839
push 0x10117e8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x34], eax
push 0x1010578
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x3c], ebx
jne 0x108e86f
push 0x10117d4
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x3c], eax
push 0x101055c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x40], ebx
jne 0x108e8a5
push 0x10117b8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x40], eax
push 0x101052c
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10dcca8]
cmp dword [eax + 0x44], ebx
jne 0x108e8db
push 0x10117a8
push dword [0x10dccb0]
call esi
mov ecx, dword [0x10dcca8]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x24], ebx
jne 0x108ea2a
mov eax, dword [0x10dcca8]
cmp eax, ebx
mov esi, 0x10dd188
je 0x108e908
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x108e908
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
jmp 0x108e90b
mov dword [ebp - 0xc], ebx
cmp dword [0x10dcca8], ebx
je 0x108ea2a
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 0x108e932
or ax, 2
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x108ea2a
cmp dword [eax + 4], ebx
je 0x108ea2a
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x10]
push dword [0x10dcca8]
call fcn.0108e38c
cmp eax, ebx
jne 0x108e97c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10dcca8]
call fcn.0108e36b
jmp 0x108e986
mov dword [0x10dccbc], 1
cmp eax, ebx
jne 0x108e9ee
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x108e9ee
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x108e9ba
sub ecx, 0x3e
jne 0x108e9d1
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 0x108e9cc
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.0108e42b
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 0x108e994
cmp dword [ebp - 4], ebx
je 0x108ea08
mov eax, dword [0x10dcca8]
cmp eax, ebx
je 0x108ea08
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x108ea08
push dword [ebp - 4]
call eax
cmp dword [ebp - 8], ebx
je 0x108ea2a
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [0x10dcca8]
call fcn.0108e3e9
jmp 0x108ea2a
mov dword [0x10dccbc], 1
pop edi
pop esi
pop ebx
leave
ret 8