Function at 0x1077c55
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x107fa78]
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.0107a032
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x1077cad
test byte [eax + 0x3c], 1
je 0x1077cad
cmp byte [eax + 0x39], 7
jb 0x1077cad
push 0x1015e00
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01060db4
and dword [edi], 0
mov ecx, esi
call fcn.01075221
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x1077d45
push 0
call fcn.01075d9e
mov esi, eax
test esi, esi
jl 0x1077d4c
lea ecx, [ebp - 0x22c]
call fcn.0107a0fa
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x1077d3e
cmp word [eax], 0x5c
jne 0x1077d3e
cmp word [eax + 2], 0x5c
jne 0x1077d3e
lea ecx, [ebp - 0x22c]
call fcn.0107a0fa
cmp eax, edi
jl 0x1077d4c
mov eax, dword [ebp - 0x22c]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x22c]
je 0x1077d26
inc edi
call fcn.0107a0fa
cmp edi, eax
jle 0x1077d07
jmp 0x1077d4c
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x22c]
add eax, 4
push 0xffffffffffffffff
push eax
call fcn.0107a7d6
jmp 0x1077d4a
mov esi, 0x80070057
jmp 0x1077d4c
call fcn.010744d2
mov esi, eax
mov eax, dword [0x107fde0]
cmp eax, 0x107fde0
je 0x1077d81
test byte [eax + 0x3c], 1
je 0x1077d81
cmp byte [eax + 0x39], 7
jb 0x1077d81
push dword [ebp - 0x22c]
push 0x1015e00
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01077a91
mov eax, dword [0x107fde0]
test esi, esi
jl 0x107827c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10164e8
call ebx
mov edi, eax
test edi, edi
mov dword [ebp - 0x250], edi
je 0x1078260
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10164d8
push edi
call esi
push 0x10164c8
push edi
mov dword [ebp - 0x240], eax
call esi
push 0x10164b8
push edi
mov dword [ebp - 0x248], eax
call esi
push 0x10164a8
push edi
mov dword [ebp - 0x234], eax
call esi
push 0x1016498
push edi
mov dword [ebp - 8], eax
call esi
push 0x1016484
push edi
mov dword [ebp - 0x238], eax
call esi
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x10], eax
je 0x1078241
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x1078241
cmp dword [ebp - 8], ecx
je 0x1078241
cmp dword [ebp - 0x248], ecx
je 0x1077e3d
cmp dword [ebp - 0x238], ecx
je 0x1077e3d
cmp eax, ecx
mov dword [ebp - 0x218], 1
jne 0x1077e43
mov dword [ebp - 0x218], ecx
push 0x101646c
call ebx
test eax, eax
mov dword [ebp - 0x220], eax
je 0x1078241
push 0x1016460
push eax
call esi
push 0x1016454
push dword [ebp - 0x220]
mov edi, eax
call esi
push 0x1016444
push dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
call esi
push 0x1016434
push dword [ebp - 0x220]
mov ebx, eax
call esi
xor esi, esi
test edi, edi
mov dword [ebp - 0x23c], eax
je 0x1078217
cmp dword [ebp - 0x244], esi
je 0x1078217
cmp ebx, esi
je 0x1078217
cmp eax, esi
je 0x1078217
push 0x18e
lea eax, [ebp - 0x212]
push esi
push eax
mov word [ebp - 0x214], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x202
call edi
cmp eax, esi
jne 0x107821f
push 8
xor eax, eax
cmp dword [ebp - 0x218], esi
pop ecx
lea edi, [ebp - 0x270]
mov dword [ebp - 0x21c], esi
rep stosd dword es:[edi], eax
jne 0x1077f14
mov dword [ebp - 0x26c], 2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x270]
push eax
push esi
push dword [ebp - 0x22c]
call ebx
cmp eax, esi
jne 0x10781cd
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x107804f
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x1077fe9
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 - 8]
test eax, eax
je 0x1077f7e
xor esi, esi
jmp 0x1077fdd
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x1077fa2
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x1077fdd
mov ecx, dword [0x107fde0]
cmp ecx, 0x107fde0
je 0x1077fdd
test byte [ecx + 0x3c], 1
je 0x1077fdd
cmp byte [ecx + 0x39], 2
jb 0x1077fdd
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1015e00
push 0x13
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01077afe
push edi
call dword [ebp - 0x234]
jmp 0x10781bf
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x107800d
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x10781bf
mov ecx, dword [0x107fde0]
cmp ecx, 0x107fde0
je 0x10781bf
test byte [ecx + 0x3c], 1
je 0x10781bf
cmp byte [ecx + 0x39], 2
jb 0x10781bf
push esi
push eax
push dword [ebp - 0x22c]
push 0x1015e00
push 0x14
jmp 0x10781ad
cmp eax, 0x17
jne 0x10781ba
cmp dword [ebp - 0x218], esi
je 0x10781ba
call dword [ebp - 0x248]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1078168
xor eax, eax
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
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 0x10780a6
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x10780ac
mov edx, dword [ebp - 0x218]
push 7
pop ecx
push dword [ebp + 0xc]
xor eax, eax
push 0x4c
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x24c]
push eax
push 8
and edx, 0xfffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x21c]
or edx, 0x10000000
mov word [ebp - 0x30], 0x17
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 0x1078103
xor esi, esi
jmp 0x1078162
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x1078127
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x1078162
mov ecx, dword [0x107fde0]
cmp ecx, 0x107fde0
je 0x1078162
test byte [ecx + 0x3c], 1
je 0x1078162
cmp byte [ecx + 0x39], 2
jb 0x1078162
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1015e00
push 0x15
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01077afe
push ebx
jmp 0x1077fde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x1078180
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x10781bf
mov ecx, dword [0x107fde0]
cmp ecx, 0x107fde0
je 0x10781bf
test byte [ecx + 0x3c], 1
je 0x10781bf
cmp byte [ecx + 0x39], 2
jb 0x10781bf
push esi
push eax
push dword [ebp - 0x22c]
push 0x1015e00
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01077b7d
jmp 0x10781bf
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x107820f
mov esi, eax
jle 0x10781dd
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x107820f
mov ecx, dword [0x107fde0]
cmp ecx, 0x107fde0
je 0x107820f
test byte [ecx + 0x3c], 1
je 0x107820f
cmp byte [ecx + 0x39], 2
jb 0x107820f
push esi
push eax
push 0x1015e00
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.01077a5f
call dword [ebp - 0x244]
jmp 0x107822d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x107822b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x250]
jmp 0x1078257
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1078255
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1078276
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1078274
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x107fde0]
pop ebx
cmp eax, 0x107fde0
je 0x10782a1
test byte [eax + 0x3c], 1
je 0x10782a1
cmp byte [eax + 0x39], 7
jb 0x10782a1
push 0x1015e00
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.01060db4
lea ecx, [ebp - 0x22c]
call fcn.0107a784
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 0xc