Function at 0x102df5b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x1034060]
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.0102995e
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102dfb3
test byte [eax + 0x3c], 1
je 0x102dfb3
cmp byte [eax + 0x39], 7
jb 0x102dfb3
push 0x1002558
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ff
and dword [edi], 0
mov ecx, esi
call fcn.0102bedf
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x102e05c
push 0
call fcn.0102cd00
mov esi, eax
test esi, esi
jl 0x102e063
lea ecx, [ebp - 0x22c]
call fcn.01029a29
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x102e055
cmp word [eax], 0x5c
jne 0x102e055
cmp word [eax + 2], 0x5c
jne 0x102e055
lea ecx, [ebp - 0x22c]
call fcn.01029a29
cmp eax, edi
jl 0x102e063
mov eax, dword [ebp - 0x22c]
push 0x5c
pop ecx
cmp cx, word [eax + edi*2]
je 0x102e036
lea ecx, [ebp - 0x22c]
inc edi
call fcn.01029a29
cmp edi, eax
jle 0x102e015
jmp 0x102e063
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.0102a161
jmp 0x102e061
mov esi, 0x80070057
jmp 0x102e063
call fcn.0102aef4
mov esi, eax
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102e098
test byte [eax + 0x3c], 1
je 0x102e098
cmp byte [eax + 0x39], 7
jb 0x102e098
push dword [ebp - 0x22c]
push 0x1002558
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d9f6
mov eax, dword [0x1034134]
test esi, esi
jl 0x102e586
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1002c38
call ebx
mov edi, eax
mov dword [ebp - 0x24c], edi
test edi, edi
je 0x102e56a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push 0x1002c28
push edi
call esi
push 0x1002c18
push edi
mov dword [ebp - 0x240], eax
call esi
push 0x1002c08
push edi
mov dword [ebp - 8], eax
call esi
push 0x1002bf8
push edi
mov dword [ebp - 0x234], eax
call esi
push 0x1002be8
push edi
mov dword [ebp - 0x248], eax
call esi
push 0x1002bd4
push edi
mov dword [ebp - 0x238], eax
call esi
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x10], eax
je 0x102e54b
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x102e54b
cmp dword [ebp - 0x248], ecx
je 0x102e54b
cmp dword [ebp - 8], ecx
je 0x102e154
cmp dword [ebp - 0x238], ecx
je 0x102e154
mov dword [ebp - 0x218], 1
cmp eax, ecx
jne 0x102e15a
mov dword [ebp - 0x218], ecx
push 0x1002bbc
call ebx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x102e54b
push 0x1002bb0
push eax
call esi
push 0x1002ba4
push dword [ebp - 0x220]
mov edi, eax
call esi
push 0x1002b94
push dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
call esi
push 0x1002b84
push dword [ebp - 0x220]
mov ebx, eax
call esi
xor esi, esi
mov dword [ebp - 0x23c], eax
test edi, edi
je 0x102e521
cmp dword [ebp - 0x244], esi
je 0x102e521
cmp ebx, esi
je 0x102e521
cmp eax, esi
je 0x102e521
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 0x102e529
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 0x102e22d
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 0x102e4d7
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x102e36b
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x102e305
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 0x102e29a
xor esi, esi
jmp 0x102e2f9
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e2be
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e2f9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e2f9
test byte [ecx + 0x3c], 1
je 0x102e2f9
cmp byte [ecx + 0x39], 2
jb 0x102e2f9
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1002558
push 0x13
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102da63
push edi
call dword [ebp - 0x234]
jmp 0x102e4c9
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e329
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e4c9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e4c9
test byte [ecx + 0x3c], 1
je 0x102e4c9
cmp byte [ecx + 0x39], 2
jb 0x102e4c9
push esi
push eax
push dword [ebp - 0x22c]
push 0x1002558
push 0x14
jmp 0x102e4b7
cmp eax, 0x17
jne 0x102e4c4
cmp dword [ebp - 0x218], esi
je 0x102e4c4
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x102e472
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 0x102e3b5
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x102e3bb
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 0x102e40d
xor esi, esi
jmp 0x102e46c
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e431
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e46c
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e46c
test byte [ecx + 0x3c], 1
je 0x102e46c
cmp byte [ecx + 0x39], 2
jb 0x102e46c
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1002558
push 0x15
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102da63
push ebx
jmp 0x102e2fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e48a
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e4c9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e4c9
test byte [ecx + 0x3c], 1
je 0x102e4c9
cmp byte [ecx + 0x39], 2
jb 0x102e4c9
push esi
push eax
push dword [ebp - 0x22c]
push 0x1002558
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102dae2
jmp 0x102e4c9
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x102e519
mov esi, eax
jle 0x102e4e7
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e519
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e519
test byte [ecx + 0x3c], 1
je 0x102e519
cmp byte [ecx + 0x39], 2
jb 0x102e519
push esi
push eax
push 0x1002558
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102d9c4
call dword [ebp - 0x244]
jmp 0x102e537
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x102e535
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 0x102e561
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102e55f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x102e580
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102e57e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1034134]
pop ebx
cmp eax, 0x1034134
je 0x102e5ab
test byte [eax + 0x3c], 1
je 0x102e5ab
cmp byte [eax + 0x39], 7
jb 0x102e5ab
push 0x1002558
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ff
lea ecx, [ebp - 0x22c]
call fcn.0102a10f
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0102907f
leave
ret 0xc