Function at 0x106a34f
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.0106d68a
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106a3a7
test byte [eax + 0x3c], 1
je 0x106a3a7
cmp byte [eax + 0x39], 7
jb 0x106a3a7
push 0x1011500
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ad
and dword [edi], 0
mov ecx, esi
call fcn.010684d7
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x106a450
push 0
call fcn.010691b0
mov esi, eax
test esi, esi
jl 0x106a457
lea ecx, [ebp - 0x22c]
call fcn.0106d755
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x106a449
cmp word [eax], 0x5c
jne 0x106a449
cmp word [eax + 2], 0x5c
jne 0x106a449
lea ecx, [ebp - 0x22c]
call fcn.0106d755
cmp eax, edi
jl 0x106a457
mov eax, dword [ebp - 0x22c]
push 0x5c
pop ecx
cmp cx, word [eax + edi*2]
je 0x106a42a
lea ecx, [ebp - 0x22c]
inc edi
call fcn.0106d755
cmp edi, eax
jle 0x106a409
jmp 0x106a457
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.0106de5c
jmp 0x106a455
mov esi, 0x80070057
jmp 0x106a457
call fcn.01067494
mov esi, eax
mov eax, dword [0x1072c98]
cmp eax, 0x1072c98
je 0x106a48c
test byte [eax + 0x3c], 1
je 0x106a48c
cmp byte [eax + 0x39], 7
jb 0x106a48c
push dword [ebp - 0x22c]
push 0x1011500
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01069eba
mov eax, dword [0x1072c98]
test esi, esi
jl 0x106a97a
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 0x106a95e
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 0x106a93f
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x106a93f
cmp dword [ebp - 0x248], ecx
je 0x106a93f
cmp dword [ebp - 8], ecx
je 0x106a548
cmp dword [ebp - 0x238], ecx
je 0x106a548
mov dword [ebp - 0x218], 1
cmp eax, ecx
jne 0x106a54e
mov dword [ebp - 0x218], ecx
push 0x1011b60
call ebx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x106a93f
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 0x106a915
cmp dword [ebp - 0x244], esi
je 0x106a915
cmp ebx, esi
je 0x106a915
cmp eax, esi
je 0x106a915
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 0x106a91d
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 0x106a621
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 0x106a8cb
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x106a75f
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x106a6f9
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 0x106a68e
xor esi, esi
jmp 0x106a6ed
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a6b2
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a6ed
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a6ed
test byte [ecx + 0x3c], 1
je 0x106a6ed
cmp byte [ecx + 0x39], 2
jb 0x106a6ed
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.01069f27
push edi
call dword [ebp - 0x234]
jmp 0x106a8bd
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a71d
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a8bd
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a8bd
test byte [ecx + 0x3c], 1
je 0x106a8bd
cmp byte [ecx + 0x39], 2
jb 0x106a8bd
push esi
push eax
push dword [ebp - 0x22c]
push 0x1011500
push 0x14
jmp 0x106a8ab
cmp eax, 0x17
jne 0x106a8b8
cmp dword [ebp - 0x218], esi
je 0x106a8b8
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x106a866
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 0x106a7a9
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x106a7af
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 0x106a801
xor esi, esi
jmp 0x106a860
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a825
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a860
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a860
test byte [ecx + 0x3c], 1
je 0x106a860
cmp byte [ecx + 0x39], 2
jb 0x106a860
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.01069f27
push ebx
jmp 0x106a6ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x106a87e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a8bd
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a8bd
test byte [ecx + 0x3c], 1
je 0x106a8bd
cmp byte [ecx + 0x39], 2
jb 0x106a8bd
push esi
push eax
push dword [ebp - 0x22c]
push 0x1011500
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069fa6
jmp 0x106a8bd
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x106a90d
mov esi, eax
jle 0x106a8db
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x106a90d
mov ecx, dword [0x1072c98]
cmp ecx, 0x1072c98
je 0x106a90d
test byte [ecx + 0x3c], 1
je 0x106a90d
cmp byte [ecx + 0x39], 2
jb 0x106a90d
push esi
push eax
push 0x1011500
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01069e88
call dword [ebp - 0x244]
jmp 0x106a92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x106a929
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 0x106a955
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106a953
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x106a974
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106a972
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1072c98]
pop ebx
cmp eax, 0x1072c98
je 0x106a99f
test byte [eax + 0x3c], 1
je 0x106a99f
cmp byte [eax + 0x39], 7
jb 0x106a99f
push 0x1011500
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0105e5ad
lea ecx, [ebp - 0x22c]
call fcn.0106de0a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 0xc