Function at 0x10202ef
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x10570e4]
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.01019631
mov eax, dword [0x1057798]
cmp eax, 0x1057798
je 0x1020347
test byte [eax + 0x3c], 1
je 0x1020347
cmp byte [eax + 0x39], 7
jb 0x1020347
push 0x1004b28
push 0x11
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0101ffb7
and dword [edi], 0
mov ecx, esi
call fcn.0101e178
push 2
cmp eax, 4
pop edi
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
jne 0x10203df
push 0
call fcn.0101ef8b
mov esi, eax
test esi, esi
jl 0x10203e6
lea ecx, [ebp - 0x22c]
call fcn.010196f9
cmp eax, 3
mov eax, dword [ebp - 0x22c]
jl 0x10203d8
cmp word [eax], 0x5c
jne 0x10203d8
cmp word [eax + 2], 0x5c
jne 0x10203d8
lea ecx, [ebp - 0x22c]
call fcn.010196f9
cmp eax, edi
jl 0x10203e6
mov eax, dword [ebp - 0x22c]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x22c]
je 0x10203c0
inc edi
call fcn.010196f9
cmp edi, eax
jle 0x10203a1
jmp 0x10203e6
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x22c]
add eax, 4
push 0xffffffffffffffff
push eax
call fcn.01019f85
jmp 0x10203e4
mov esi, 0x80070057
jmp 0x10203e6
call fcn.0101d481
mov esi, eax
mov eax, dword [0x1057798]
cmp eax, 0x1057798
je 0x102041b
test byte [eax + 0x3c], 1
je 0x102041b
cmp byte [eax + 0x39], 7
jb 0x102041b
push dword [ebp - 0x22c]
push 0x1004b28
push 0x12
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.010200ae
mov eax, dword [0x1057798]
test esi, esi
jl 0x1020916
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1005234
call ebx
mov edi, eax
test edi, edi
mov dword [ebp - 0x250], edi
je 0x10208fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005224
push edi
call esi
push 0x1005214
push edi
mov dword [ebp - 0x240], eax
call esi
push 0x1005204
push edi
mov dword [ebp - 0x248], eax
call esi
push 0x10051f4
push edi
mov dword [ebp - 0x234], eax
call esi
push 0x10051e4
push edi
mov dword [ebp - 8], eax
call esi
push 0x10051d0
push edi
mov dword [ebp - 0x238], eax
call esi
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x10], eax
je 0x10208db
xor ecx, ecx
cmp dword [ebp - 0x234], ecx
je 0x10208db
cmp dword [ebp - 8], ecx
je 0x10208db
cmp dword [ebp - 0x248], ecx
je 0x10204d7
cmp dword [ebp - 0x238], ecx
je 0x10204d7
cmp eax, ecx
mov dword [ebp - 0x218], 1
jne 0x10204dd
mov dword [ebp - 0x218], ecx
push 0x10051b8
call ebx
test eax, eax
mov dword [ebp - 0x220], eax
je 0x10208db
push 0x10051ac
push eax
call esi
push 0x10051a0
push dword [ebp - 0x220]
mov edi, eax
call esi
push 0x1005190
push dword [ebp - 0x220]
mov dword [ebp - 0x244], eax
call esi
push 0x1005180
push dword [ebp - 0x220]
mov ebx, eax
call esi
xor esi, esi
test edi, edi
mov dword [ebp - 0x23c], eax
je 0x10208b1
cmp dword [ebp - 0x244], esi
je 0x10208b1
cmp ebx, esi
je 0x10208b1
cmp eax, esi
je 0x10208b1
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 0x10208b9
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 0x10205ae
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 0x1020867
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
cmp eax, 2
jne 0x10206e9
call dword [ebp - 0x240]
mov edi, eax
cmp edi, 0xffffffff
je 0x1020683
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 0x1020618
xor esi, esi
jmp 0x1020677
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102063c
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x1020677
mov ecx, dword [0x1057798]
cmp ecx, 0x1057798
je 0x1020677
test byte [ecx + 0x3c], 1
je 0x1020677
cmp byte [ecx + 0x39], 2
jb 0x1020677
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1004b28
push 0x13
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102011b
push edi
call dword [ebp - 0x234]
jmp 0x1020859
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x10206a7
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x1020859
mov ecx, dword [0x1057798]
cmp ecx, 0x1057798
je 0x1020859
test byte [ecx + 0x3c], 1
je 0x1020859
cmp byte [ecx + 0x39], 2
jb 0x1020859
push esi
push eax
push dword [ebp - 0x22c]
push 0x1004b28
push 0x14
jmp 0x1020847
cmp eax, 0x17
jne 0x1020854
cmp dword [ebp - 0x218], esi
je 0x1020854
call dword [ebp - 0x248]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1020802
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 0x1020740
xor edx, edx
mov dword [ebp - 0x218], edx
jmp 0x1020746
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 0x102079d
xor esi, esi
jmp 0x10207fc
mov eax, dword [ebp - 0x230]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x10207c1
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x10207fc
mov ecx, dword [0x1057798]
cmp ecx, 0x1057798
je 0x10207fc
test byte [ecx + 0x3c], 1
je 0x10207fc
cmp byte [ecx + 0x39], 2
jb 0x10207fc
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x22c]
push 0x1004b28
push 0x15
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102011b
push ebx
jmp 0x1020678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov esi, eax
jle 0x102081a
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x1020859
mov ecx, dword [0x1057798]
cmp ecx, 0x1057798
je 0x1020859
test byte [ecx + 0x3c], 1
je 0x1020859
cmp byte [ecx + 0x39], 2
jb 0x1020859
push esi
push eax
push dword [ebp - 0x22c]
push 0x1004b28
push 0x17
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102019a
jmp 0x1020859
mov esi, 0x80004005
push dword [ebp - 0x21c]
call dword [ebp - 0x23c]
jmp 0x10208a9
mov esi, eax
jle 0x1020877
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x10208a9
mov ecx, dword [0x1057798]
cmp ecx, 0x1057798
je 0x10208a9
test byte [ecx + 0x3c], 1
je 0x10208a9
cmp byte [ecx + 0x39], 2
jb 0x10208a9
push esi
push eax
push 0x1004b28
push 0x18
push dword [ecx + 0x34]
push dword [ecx + 0x30]
call fcn.0102007c
call dword [ebp - 0x244]
jmp 0x10208c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x10208c5
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 0x10208f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10208ef
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1020910
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x102090e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x1057798]
pop ebx
cmp eax, 0x1057798
je 0x102093b
test byte [eax + 0x3c], 1
je 0x102093b
cmp byte [eax + 0x39], 7
jb 0x102093b
push 0x1004b28
push 0x19
push dword [eax + 0x34]
push dword [eax + 0x30]
call fcn.0101ffb7
lea ecx, [ebp - 0x22c]
call fcn.01019f33
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101897b
leave
ret 0xc