Function at 0x1064ee0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x10ae1e0]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 4], eax
call fcn.0102dcc4
mov ecx, esi
call fcn.01067057
cmp eax, 4
lea eax, [ebp - 0x1cc]
mov ecx, esi
push eax
jne 0x1064fa0
push 0
call fcn.01068a5f
mov esi, eax
test esi, esi
jl 0x106521e
lea ecx, [ebp - 0x1cc]
call fcn.0102dd7d
cmp eax, 3
jl 0x1064f99
mov eax, dword [ebp - 0x1cc]
cmp word [eax], 0x5c
jne 0x1064f99
cmp word [eax + 2], 0x5c
jne 0x1064f99
push 2
pop edi
lea ecx, [ebp - 0x1cc]
call fcn.0102dd7d
cmp eax, edi
jl 0x1064fa7
mov eax, dword [ebp - 0x1cc]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x1cc]
je 0x1064f81
inc edi
call fcn.0102dd7d
cmp edi, eax
jle 0x1064f62
jmp 0x1064fa7
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x1cc]
push 0xffffffffffffffff
add eax, 4
push eax
call fcn.0102e67e
jmp 0x1064fa5
mov esi, 0x80070057
jmp 0x1064fa7
call fcn.010667d8
mov esi, eax
test esi, esi
jl 0x106521e
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x1cc]
call fcn.0102e1a6
mov esi, eax
test esi, esi
jl 0x106521e
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x1d0], eax
je 0x1064ff5
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0x1cc]
call fcn.0102e1a6
mov esi, eax
jmp 0x1064ffa
mov esi, 0x8007000e
test esi, esi
jl 0x1065209
push ebx
push 0x1010720
call fcn.0102b8aa
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1e8], ebx
je 0x10651e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010710
push ebx
call esi
push 0x1010700
push ebx
mov edi, eax
call esi
push 0x10106f0
push ebx
mov dword [ebp - 0x1d4], eax
call esi
test edi, edi
mov dword [ebp - 0x1e4], eax
je 0x10651b6
cmp dword [ebp - 0x1d4], 0
je 0x10651b6
test eax, eax
je 0x10651b6
call edi
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x10651b6
push 0x10106d8
call fcn.0102b8aa
mov edi, eax
test edi, edi
mov dword [ebp - 0x1e0], edi
je 0x1065186
push 0x10106c8
push edi
call esi
push 0x10106bc
push edi
mov ebx, eax
call esi
push 0x10106b0
push edi
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x1dc], eax
je 0x1065156
cmp dword [ebp - 8], 0
je 0x1065156
test eax, eax
je 0x1065156
and word [ebp - 0x1c0], 0
push 0x63
pop ecx
xor eax, eax
lea edi, [ebp - 0x1be]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [ebp - 8]
test eax, eax
jne 0x1065156
push dword [ebp - 0x1d0]
call ebx
xor esi, esi
cmp eax, esi
je 0x106512c
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push esi
push 8
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
push dword [ebp - 0x1d8]
call dword [ebp - 0x1e4]
test eax, eax
jne 0x106514e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106513e
call esi
mov esi, eax
jmp 0x106514e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [ebp - 0x1dc]
jmp 0x1065178
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1065168
call esi
mov esi, eax
jmp 0x1065178
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10651a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1065198
call esi
mov esi, eax
jmp 0x10651a8
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1d8]
call dword [ebp - 0x1d4]
jmp 0x10651d8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10651c8
call esi
mov esi, eax
jmp 0x10651d8
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1065208
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10651f8
call esi
mov esi, eax
jmp 0x1065208
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 0x1d0], 0
je 0x106521e
push dword [ebp - 0x1d0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x1cc]
call fcn.0102e62a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01028eec
leave
ret 8