Function at 0x108ea31
Capabilities:
Link many functions at runtime

Disassembly:
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 0x108ea4e
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x108ea51
mov edi, dword [ebp + 0xc]
cmp dword [0x10dccc0], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jne 0x108efdd
call fcn.0108e493
test ax, ax
jne 0x108efdd
cmp dword [0x10dccac], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x108ea91
push 0x1011b24
call esi
mov dword [0x10dccb4], eax
cmp dword [0x10dccb8], ebx
jne 0x108eaa5
push 0x10118ec
call esi
mov dword [0x10dccb8], eax
cmp dword [0x10dccb4], ebx
je 0x108ee66
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10dccac], eax
je 0x108ee66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011b0c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 4], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 4], ebx
jne 0x108eb06
push 0x1011af4
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 4], eax
push 0x1010638
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0xc], ebx
jne 0x108eb3c
push 0x1011adc
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0xc], eax
push 0x101061c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x10], ebx
jne 0x108eb72
push 0x1011abc
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x10], eax
push 0x10105d0
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x20], ebx
jne 0x108eba8
push 0x1011aa0
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x20], eax
push 0x10105e8
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x14], ebx
jne 0x108ebde
push 0x1011a88
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x14], eax
push 0x101060c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x18], ebx
jne 0x108ec14
push 0x1011a74
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x18], eax
push 0x10105fc
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x1c], ebx
jne 0x108ec4a
push 0x1011a60
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x1c], eax
push 0x10105b8
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x24], ebx
jne 0x108ec80
push 0x1011a44
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x24], eax
push 0x10105a0
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x2c], ebx
jne 0x108ecb6
push 0x1011a30
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x2c], eax
push 0x10105ac
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x28], ebx
jne 0x108ecec
push 0x1011a1c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x28], eax
push 0x101053c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x30], ebx
jne 0x108ed22
push 0x10119f8
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x30], eax
push 0x101058c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x38], ebx
jne 0x108ed58
push 0x10119e0
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x38], eax
push 0x1010578
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x3c], ebx
jne 0x108ed8e
push 0x10119c8
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x3c], eax
push 0x101055c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x40], ebx
jne 0x108edc4
push 0x10119a8
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x40], eax
push 0x101052c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x44], ebx
jne 0x108edfa
push 0x1011994
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x44], eax
push 0x1011978
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x48], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x48], ebx
jne 0x108ee30
push 0x1011954
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x48], eax
push 0x101193c
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x10dccac]
cmp dword [eax + 0x4c], ebx
jne 0x108ee66
push 0x1011924
push dword [0x10dccb4]
call esi
mov ecx, dword [0x10dccac]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x2c], ebx
jne 0x108efe7
mov eax, dword [0x10dccac]
cmp eax, ebx
mov esi, 0x10dd18c
je 0x108ee93
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x108ee93
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
jmp 0x108ee96
mov dword [ebp - 0x10], ebx
cmp dword [0x10dccac], ebx
je 0x108efe7
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 0x108eec0
or ax, 8
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x108efe7
cmp dword [eax + 4], ebx
je 0x108efe7
xor edi, edi
inc edi
cmp dword [ebp - 0x10], ebx
je 0x108eef7
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push edi
push ebx
push esi
push dword [ebp - 0xc]
push dword [0x10dccac]
call fcn.0108e2ce
cmp eax, ebx
je 0x108ef15
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0xc]
push dword [0x10dccac]
call fcn.0108e38c
cmp eax, ebx
mov dword [ebp - 0x14], edi
jne 0x108ef30
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10dccac]
call fcn.0108e36b
jmp 0x108ef36
mov dword [0x10dccc0], edi
cmp eax, ebx
jne 0x108ef9e
mov eax, dword [ebp + 8]
shr eax, 1
xor edi, edi
dec eax
je 0x108ef9e
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x108ef6a
sub ecx, 0x3e
jne 0x108ef81
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 0x108ef7c
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.0108e42b
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 0x108ef44
cmp dword [ebp - 8], ebx
je 0x108efb8
mov eax, dword [0x10dccac]
cmp eax, ebx
je 0x108efb8
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x108efb8
push dword [ebp - 8]
call eax
cmp dword [ebp - 4], ebx
je 0x108efe7
cmp word [ebp - 0x14], bx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10dccac]
je 0x108efd6
call fcn.0108e3e9
jmp 0x108efe7
call fcn.0108e334
jmp 0x108efe7
mov dword [0x10dccc0], 1
pop edi
pop esi
pop ebx
leave
ret 8