Function at 0x102df4b
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.0102994e
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102dfa3
test byte [eax + 0x3c], 1
je 0x102dfa3
cmp byte [eax + 0x39], 7
jb 0x102dfa3
push 0x1002558
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ef
and dword [edi], 0
mov ecx, esi
call fcn.0102becf
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x102e04c
push 0
call fcn.0102ccf0
mov esi, eax
test esi, esi
jl 0x102e053
lea ecx, [ebp - 0x22c]
call fcn.01029a19
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x102e045
cmp word [eax], 0x5c
jne 0x102e045
cmp word [eax + 2], 0x5c
jne 0x102e045
lea ecx, [ebp - 0x22c]
call fcn.01029a19
cmp eax, edi
jl 0x102e053
mov eax, dword [ebp - 0x22c]
push 0x5c
pop ecx
cmp cx, word [eax + edi*2]
je 0x102e026
lea ecx, [ebp - 0x22c]
inc edi
call fcn.01029a19
cmp edi, eax
jle 0x102e005
jmp 0x102e053
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.0102a151
jmp 0x102e051
mov esi, 0x80070057
jmp 0x102e053
call fcn.0102aee4
mov esi, eax
mov eax, dword [0x1034134]
cmp eax, 0x1034134
je 0x102e088
test byte [eax + 0x3c], 1
je 0x102e088
cmp byte [eax + 0x39], 7
jb 0x102e088
push dword [ebp - 0x22c]
push 0x1002558
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d9e6
mov eax, dword [0x1034134]
test esi, esi
jl 0x102e576
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 0x102e55a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
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 0x102e53b
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x102e53b
cmp dword [ebp - 0x248], ecx
je 0x102e53b
cmp dword [ebp - 8], ecx
je 0x102e144
cmp dword [ebp - 0x238], ecx
je 0x102e144
mov dword [ebp - 0x218], 1
cmp eax, ecx
jne 0x102e14a
mov dword [ebp - 0x218], ecx
push 0x1002bbc
call ebx
mov dword [ebp - 0x220], eax
test eax, eax
je 0x102e53b
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 0x102e511
cmp dword [ebp - 0x244], esi
je 0x102e511
cmp ebx, esi
je 0x102e511
cmp eax, esi
je 0x102e511
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 0x102e519
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 0x102e21d
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 0x102e4c7
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x102e35b
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x102e2f5
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 0x102e28a
xor esi, esi
jmp 0x102e2e9
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e2ae
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e2e9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e2e9
test byte [ecx + 0x3c], 1
je 0x102e2e9
cmp byte [ecx + 0x39], 2
jb 0x102e2e9
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.0102da53
push edi
call dword [ebp - 0x234]
jmp 0x102e4b9
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e319
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e4b9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e4b9
test byte [ecx + 0x3c], 1
je 0x102e4b9
cmp byte [ecx + 0x39], 2
jb 0x102e4b9
push esi
push eax
push dword [ebp - 0x22c]
push 0x1002558
push 0x14
jmp 0x102e4a7
cmp eax, 0x17
jne 0x102e4b4
cmp dword [ebp - 0x218], esi
je 0x102e4b4
call dword [ebp - 8]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x102e462
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 0x102e3a5
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x102e3ab
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 0x102e3fd
xor esi, esi
jmp 0x102e45c
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e421
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e45c
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e45c
test byte [ecx + 0x3c], 1
je 0x102e45c
cmp byte [ecx + 0x39], 2
jb 0x102e45c
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.0102da53
push ebx
jmp 0x102e2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102e47a
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e4b9
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e4b9
test byte [ecx + 0x3c], 1
je 0x102e4b9
cmp byte [ecx + 0x39], 2
jb 0x102e4b9
push esi
push eax
push dword [ebp - 0x22c]
push 0x1002558
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102dad2
jmp 0x102e4b9
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x102e509
mov esi, eax
jle 0x102e4d7
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x102e509
mov ecx, dword [0x1034134]
cmp ecx, 0x1034134
je 0x102e509
test byte [ecx + 0x3c], 1
je 0x102e509
cmp byte [ecx + 0x39], 2
jb 0x102e509
push esi
push eax
push 0x1002558
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102d9b4
call dword [ebp - 0x244]
jmp 0x102e527
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x102e525
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 0x102e551
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102e54f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x102e570
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102e56e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1034134]
pop ebx
cmp eax, 0x1034134
je 0x102e59b
test byte [eax + 0x3c], 1
je 0x102e59b
cmp byte [eax + 0x39], 7
jb 0x102e59b
push 0x1002558
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0102d8ef
lea ecx, [ebp - 0x22c]
call fcn.0102a0ff
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01029060
leave
ret 0xc