Function at 0x109f8cc
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 0x109f8eb
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x109f8ee
mov edi, dword [ebp + 0xc]
cmp dword [0x10f5900], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
jne 0x109fea6
call fcn.0109f2f5
test ax, ax
jne 0x109fea6
cmp dword [0x10f58e4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x109f92e
push 0x10124f0
call esi
mov dword [0x10f58f0], eax
cmp dword [0x10f58f4], ebx
jne 0x109f942
push 0x1012294
call esi
mov dword [0x10f58f4], eax
cmp dword [0x10f58f0], ebx
je 0x109fd31
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10f58e4], eax
je 0x109fd31
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10124d8
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 4], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 4], ebx
jne 0x109f9a3
push 0x10124c0
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 4], eax
push 0x1010d60
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0xc], ebx
jne 0x109f9d9
push 0x10124a8
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0xc], eax
push 0x1010d44
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x10], ebx
jne 0x109fa0f
push 0x1012488
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x10], eax
push 0x1010cf8
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x20], ebx
jne 0x109fa45
push 0x101246c
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x20], eax
push 0x1010d10
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x14], ebx
jne 0x109fa7b
push 0x1012454
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x14], eax
push 0x1010d34
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x18], ebx
jne 0x109fab1
push 0x1012440
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x18], eax
push 0x1010d24
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x1c], ebx
jne 0x109fae7
push 0x101242c
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x1c], eax
push 0x1010ce0
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x24], ebx
jne 0x109fb1d
push 0x1012410
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x24], eax
push 0x1010cc8
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x2c], ebx
jne 0x109fb53
push 0x10123fc
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x2c], eax
push 0x1010cd4
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x28], ebx
jne 0x109fb89
push 0x10123e8
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x28], eax
push 0x1010c64
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x30], ebx
jne 0x109fbbf
push 0x10123c4
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x30], eax
push 0x1010cb4
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x38], ebx
jne 0x109fbf5
push 0x10123ac
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x38], eax
push 0x1012388
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10f58e4]
xor ecx, ecx
cmp dword [eax + 0x3c], ebx
setne cl
mov dword [0x10f58e8], ecx
cmp dword [eax + 0x3c], ebx
jne 0x109fc59
push 0x1010ca0
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x3c], ebx
jne 0x109fc59
push 0x1012370
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x3c], eax
push 0x1010c84
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x40], ebx
jne 0x109fc8f
push 0x1012350
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x40], eax
push 0x1010c54
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x44], ebx
jne 0x109fcc5
push 0x101233c
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x44], eax
push 0x1012320
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x48], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x48], ebx
jne 0x109fcfb
push 0x10122fc
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x48], eax
push 0x10122e4
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x4c], eax
mov eax, dword [0x10f58e4]
cmp dword [eax + 0x4c], ebx
jne 0x109fd31
push 0x10122cc
push dword [0x10f58f0]
call esi
mov ecx, dword [0x10f58e4]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x2c], ebx
jne 0x109feb0
mov eax, dword [0x10f58e4]
cmp eax, ebx
mov esi, 0x10f5dcc
je 0x109fd5e
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109fd5e
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
jmp 0x109fd61
mov dword [ebp - 0x10], ebx
cmp dword [0x10f58e4], ebx
je 0x109feb0
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 0x109fd8b
or ax, 8
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109feb0
cmp dword [eax + 4], ebx
je 0x109feb0
cmp dword [ebp - 0x10], ebx
je 0x109fdc0
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push ebx
push esi
push dword [ebp - 0xc]
push dword [0x10f58e4]
call fcn.0109f105
cmp eax, ebx
je 0x109fde1
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0xc]
push dword [0x10f58e4]
call fcn.0109f1d9
xor ecx, ecx
inc ecx
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x109fdfc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10f58e4]
call fcn.0109f1b1
jmp 0x109fe02
mov dword [0x10f5900], ecx
cmp eax, ebx
jne 0x109fe67
mov eax, dword [ebp + 8]
shr eax, 1
xor esi, esi
dec eax
je 0x109fe67
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109fe33
sub ecx, 0x3e
jne 0x109fe4a
add eax, 2
push ebx
push eax
mov eax, dword [edi + 0x5c]
mov edi, dword [eax + 0x58]
add edi, 0x30
jmp 0x109fe42
add eax, 2
push 1
push eax
mov eax, dword [edi + 0x5c]
mov edi, dword [eax + 0x58]
add edi, 0x2c
call fcn.0109f286
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax + 2]
mov eax, dword [ebp + 8]
shr eax, 1
dec eax
cmp esi, eax
pop ecx
jb 0x109fe10
cmp dword [ebp - 8], ebx
je 0x109fe81
mov eax, dword [0x10f58e4]
cmp eax, ebx
je 0x109fe81
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109fe81
push dword [ebp - 8]
call eax
cmp dword [ebp - 4], ebx
je 0x109feb0
cmp word [ebp - 0x14], bx
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [0x10f58e4]
je 0x109fe9f
call fcn.0109f23d
jmp 0x109feb0
call fcn.0109f172
jmp 0x109feb0
mov dword [0x10f5900], 1
pop edi
pop esi
pop ebx
leave
ret 8