Function at 0x109f39a
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 - 8], ebx
je 0x109f3b9
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
jmp 0x109f3bc
mov edi, dword [ebp + 0xc]
cmp dword [0x10f58fc], ebx
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
jne 0x109f8b6
call fcn.0109f2f5
test ax, ax
jne 0x109f8b6
cmp dword [0x10f58e0], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x109f3fc
push 0x10122b0
call esi
mov dword [0x10f58ec], eax
cmp dword [0x10f58f4], ebx
jne 0x109f410
push 0x1012294
call esi
mov dword [0x10f58f4], eax
cmp dword [0x10f58ec], ebx
je 0x109f765
push 1
push 0x50
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x10f58e0], eax
je 0x109f765
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1012284
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 4], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 4], ebx
jne 0x109f471
push 0x1012274
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 4], eax
push 0x1010d60
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 8], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 8], ebx
jne 0x109f4a7
push 0x1012260
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 8], eax
push 0x1010d44
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x10], ebx
jne 0x109f4dd
push 0x1012244
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x10], eax
push 0x1010cf8
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x20], ebx
jne 0x109f513
push 0x101222c
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x20], eax
push 0x1010d10
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x14], ebx
jne 0x109f549
push 0x1012218
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x14], eax
push 0x1010d34
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x18], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x18], ebx
jne 0x109f57f
push 0x1012208
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x18], eax
push 0x1010d24
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x1c], ebx
jne 0x109f5b5
push 0x10121f8
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x1c], eax
push 0x1010ce0
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x24], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x24], ebx
jne 0x109f5eb
push 0x10121e0
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x24], eax
push 0x1010cc8
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x2c], ebx
jne 0x109f621
push 0x10121d0
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x2c], eax
push 0x1010cd4
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x28], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x28], ebx
jne 0x109f657
push 0x10121c4
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x28], eax
push 0x1010c64
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x30], ebx
jne 0x109f68d
push 0x10121a4
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x30], eax
push 0x1010cb4
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x34], ebx
jne 0x109f6c3
push 0x1012190
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x34], eax
push 0x1010ca0
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x3c], ebx
jne 0x109f6f9
push 0x101217c
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x3c], eax
push 0x1010c84
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x40], ebx
jne 0x109f72f
push 0x1012160
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x40], eax
push 0x1010c54
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10f58e0]
cmp dword [eax + 0x44], ebx
jne 0x109f765
push 0x1012150
push dword [0x10f58ec]
call esi
mov ecx, dword [0x10f58e0]
mov dword [ecx + 0x44], eax
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + 0x58]
cmp dword [eax + 0x24], ebx
jne 0x109f8c0
mov eax, dword [0x10f58e0]
cmp eax, ebx
mov esi, 0x10f5dc8
je 0x109f792
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x109f792
lea ecx, [ebp - 8]
push ecx
push esi
call eax
jmp 0x109f795
mov dword [ebp - 8], ebx
cmp dword [0x10f58e0], ebx
je 0x109f8c0
or byte [edi + 0x62], 1
cmp dword [ebp - 8], ebx
mov ax, word [edi + 0x62]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x109f7bc
or ax, 2
mov word [edi + 0x62], ax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x109f8c0
cmp dword [eax + 4], ebx
je 0x109f8c0
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x10]
push dword [0x10f58e0]
call fcn.0109f1d9
cmp eax, ebx
je 0x109f7fa
cmp dword [ebp - 8], ebx
je 0x109f815
mov dword [0x10f58f8], eax
jmp 0x109f8c0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [0x10f58e0]
call fcn.0109f1b1
jmp 0x109f81f
mov dword [0x10f58fc], 1
cmp eax, ebx
jne 0x109f884
mov eax, dword [ebp + 8]
shr eax, 1
xor esi, esi
dec eax
je 0x109f884
mov eax, dword [ebp - 4]
lea eax, [eax + esi*2]
movzx ecx, word [eax]
sub ecx, 0x44
je 0x109f850
sub ecx, 0x3e
jne 0x109f867
add eax, 2
push ebx
push eax
mov eax, dword [edi + 0x5c]
mov edi, dword [eax + 0x58]
add edi, 0x28
jmp 0x109f85f
add eax, 2
push 1
push eax
mov eax, dword [edi + 0x5c]
mov edi, dword [eax + 0x58]
add edi, 0x24
call fcn.0109f286
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
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 0x109f82d
cmp dword [ebp - 4], ebx
je 0x109f89e
mov eax, dword [0x10f58e0]
cmp eax, ebx
je 0x109f89e
mov eax, dword [eax + 0x2c]
cmp eax, ebx
je 0x109f89e
push dword [ebp - 4]
call eax
cmp dword [ebp - 0xc], ebx
je 0x109f8c0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [0x10f58e0]
call fcn.0109f23d
jmp 0x109f8c0
mov dword [0x10f58fc], 1
pop edi
pop esi
pop ebx
leave
ret 8