Function at 0x106a36f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x230], edi
call fcn.0106d6aa
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106a3c7
test byte [eax + 0x3c], 1
je 0x106a3c7
cmp byte [eax + 0x39], 7
jb 0x106a3c7
push 0x1011500
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ce
and dword [edi], 0
mov ecx, esi
call fcn.010684f7
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x106a470
push 0
call fcn.010691d0
mov esi, eax
test esi, esi
jl 0x106a477
lea ecx, [ebp - 0x22c]
call fcn.0106d775
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x106a469
cmp word [eax], 0x5c
jne 0x106a469
cmp word [eax + 2], 0x5c
jne 0x106a469
lea ecx, [ebp - 0x22c]
call fcn.0106d775
cmp eax, edi
jl 0x106a477
mov eax, dword [ebp - 0x22c]
push 0x5c
pop ecx
cmp cx, word [eax + edi*2]
je 0x106a44a
lea ecx, [ebp - 0x22c]
inc edi
call fcn.0106d775
cmp edi, eax
jle 0x106a429
jmp 0x106a477
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x22c]
add eax, 4
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x22c]
call fcn.0106de7c
jmp 0x106a475
mov esi, 0x80070057
jmp 0x106a477
call fcn.010674b2
mov esi, eax
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106a4ac
test byte [eax + 0x3c], 1
je 0x106a4ac
cmp byte [eax + 0x39], 7
jb 0x106a4ac
push dword [ebp - 0x22c]
push 0x1011500
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069eda
mov eax, dword [0x1072c98]
test esi, esi
jl 0x106a99a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1011bdc
call ebx
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
je 0x106a97e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011bcc
push edi
call esi
push 0x1011bbc
push edi
mov dword [ebp - 0x240], eax
call esi
push 0x1011bac
push edi
mov dword [ebp - 8], eax
call esi
push 0x1011b9c
push edi
mov dword [ebp - 0x234], eax
call esi
push 0x1011b8c
push edi
mov dword [ebp - 0x248], eax
call esi
push 0x1011b78
push edi
mov dword [ebp - 0x238], eax
call esi
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x10], eax
je 0x106a95f
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x106a95f
cmp dword [ebp - 0x248], ecx
je 0x106a95f
cmp dword [ebp - 8], ecx
je 0x106a568
cmp dword [ebp - 0x238], ecx
je 0x106a568
mov dword [ebp - 0x218], 1
cmp eax, ecx
jne 0x106a56e
mov dword [ebp - 0x218], ecx
push 0x1011b60
call ebx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x106a95f
push 0x1011b54
push eax
call esi
push 0x1011b48
push dword [ebp - 0x220]
mov edi, eax
call esi
push 0x1011b38
push dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
call esi
push 0x1011b28
push dword [ebp - 0x220]
mov ebx, eax
call esi
xor esi, esi
mov dword [ebp - 0x23c], eax
test edi, edi
je 0x106a935
cmp dword [ebp - 0x244], esi
je 0x106a935
cmp ebx, esi
je 0x106a935
cmp eax, esi
je 0x106a935
xor eax, eax
push 0x18e
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x202
call edi
cmp eax, esi
jne 0x106a93d
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x26c]
mov dword [ebp - 0x21c], esi
rep stosd dword es:[edi], eax
cmp dword [ebp - 0x218], esi
jne 0x106a641
mov dword [ebp - 0x268], 2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x26c]
push eax
push esi
push dword [ebp - 0x22c]
call ebx
cmp eax, esi
jne 0x106a8eb
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x106a77f
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x106a719
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
push 0x24
push eax
push esi
push 8
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x18]
push dword [eax + 4]
push edi
call dword [ebp - 0x248]
test eax, eax
je 0x106a6ae
xor esi, esi
jmp 0x106a70d
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a6d2
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a70d
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a70d
test byte [ecx + 0x3c], 1
je 0x106a70d
cmp byte [ecx + 0x39], 2
jb 0x106a70d
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1011500
push 0x13
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069f47
push edi
call dword [ebp - 0x234]
jmp 0x106a8dd
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a73d
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a8dd
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a8dd
test byte [ecx + 0x3c], 1
je 0x106a8dd
cmp byte [ecx + 0x39], 2
jb 0x106a8dd
push esi
push eax
push dword [ebp - 0x22c]
push 0x1011500
push 0x14
jmp 0x106a8cb
cmp eax, 0x17
jne 0x106a8d8
cmp dword [ebp - 0x218], esi
je 0x106a8d8
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x106a886
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x218], esi
push dword [eax + 0x18]
call dword [ebp - 0x10]
test eax, eax
je 0x106a7c9
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x106a7cf
mov edx, dword [ebp - 0x218]
push 7
pop ecx
push 0x17
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x30], ax
push 0x4c
lea eax, [ebp - 0x84]
push eax
push esi
push 8
and edx, 0xfffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x21c]
or edx, 0x10000000
mov dword [ebp - 0x18], edx
push dword [eax + 0x18]
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
push ebx
call dword [ebp - 0x238]
test eax, eax
je 0x106a821
xor esi, esi
jmp 0x106a880
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a845
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a880
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a880
test byte [ecx + 0x3c], 1
je 0x106a880
cmp byte [ecx + 0x39], 2
jb 0x106a880
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1011500
push 0x15
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069f47
push ebx
jmp 0x106a70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a89e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a8dd
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a8dd
test byte [ecx + 0x3c], 1
je 0x106a8dd
cmp byte [ecx + 0x39], 2
jb 0x106a8dd
push esi
push eax
push dword [ebp - 0x22c]
push 0x1011500
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069fc6
jmp 0x106a8dd
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x106a92d
mov esi, eax
jle 0x106a8fb
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a92d
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a92d
test byte [ecx + 0x3c], 1
je 0x106a92d
cmp byte [ecx + 0x39], 2
jb 0x106a92d
push esi
push eax
push 0x1011500
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069ea8
call dword [ebp - 0x244]
jmp 0x106a94b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x106a949
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x24c]
jmp 0x106a975
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106a973
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x106a994
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106a992
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1072c98]
pop ebx
cmp eax, 0x1072c98
je 0x106a9bf
test byte [eax + 0x3c], 1
je 0x106a9bf
cmp byte [eax + 0x39], 7
jb 0x106a9bf
push 0x1011500
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ce
lea ecx, [ebp - 0x22c]
call fcn.0106de2a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 0xc