Function at 0x10a5cbf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x5160
call fcn.01077a20
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x10ecd04], edi
mov dword [ebp - 0x5160], eax
jne 0x10a5fa0
call fcn.0109a04b
test ax, ax
jne 0x10a5fa0
cmp dword [0x10ecaf4], edi
mov eax, dword [0x10ecaf0]
jne 0x10a5e17
cmp eax, edi
jne 0x10a5de1
push 0x1004a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x10ecaf4], eax
je 0x10a5dd4
push 1
push 0x20
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10ecaf0], eax
je 0x10a5faa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a14
mov dword [eax + 4], edi
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
push 0x10049f4
mov dword [ecx + 8], eax
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
push 0x10049d4
mov dword [ecx + 0xc], eax
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
push 0x10049b4
mov dword [ecx + 0x10], eax
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
push 0x1004990
mov dword [ecx + 0x14], eax
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
push 0x1004944
mov dword [ecx + 0x18], eax
push dword [0x10ecaf4]
call esi
mov ecx, dword [0x10ecaf0]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10ecaf0]
cmp eax, edi
je 0x10a5faa
cmp dword [eax + 8], edi
je 0x10a5faa
cmp dword [eax + 0xc], edi
je 0x10a5faa
cmp dword [eax + 0x10], edi
je 0x10a5faa
cmp dword [eax + 0x14], edi
je 0x10a5faa
cmp dword [eax + 0x18], edi
je 0x10a5faa
cmp dword [eax + 0x1c], edi
je 0x10a5faa
lea ecx, [ebp - 0x514c]
push ecx
push 0x120
mov dword [ebp - 0x5148], edi
push dword [eax + 4]
call dword [eax + 8]
test eax, eax
jne 0x10a5faa
push dword [ebp - 0x514c]
mov eax, dword [0x10ecaf0]
mov dword [ebp - 0x5154], edi
call dword [eax + 0x10]
test eax, eax
jne 0x10a5f8b
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
lea eax, [ebp - 0x5158]
push eax
push dword [ebp - 0x5154]
mov eax, dword [0x10ecaf0]
push dword [ebp - 0x514c]
call dword [eax + 0x14]
mov ebx, eax
cmp ebx, edi
jne 0x10a5edf
lea eax, [ebp - 0x515c]
push eax
push dword [ebp - 0x5158]
mov eax, dword [0x10ecaf0]
push dword [ebp - 0x514c]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, edi
jne 0x10a5edf
mov eax, 0x28a0
mov dword [ebp - 0x5148], eax
mov dword [ebp - 0x5150], eax
lea eax, [ebp - 0x28a4]
push eax
lea eax, [ebp - 0x5150]
push eax
lea eax, [ebp - 0x5144]
push eax
lea eax, [ebp - 0x5148]
push eax
push dword [ebp - 0x5158]
mov eax, dword [0x10ecaf0]
push dword [ebp - 0x514c]
call dword [eax + 0x1c]
mov ebx, eax
lea edi, [ebp - 0x5144]
jmp 0x10a5f23
test ebx, ebx
jne 0x10a5f2c
push ebx
push edi
push dword [ebp - 0x515c]
push dword [ebp - 0x5160]
call fcn.010a5a62
push edi
movsx ebx, ax
call esi
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x5148]
lea eax, [eax + ecx*2]
push edi
mov dword [ebp - 0x5148], eax
call esi
pop ecx
pop ecx
lea edi, [edi + eax*2 + 2]
cmp dword [ebp - 0x5148], 2
ja 0x10a5ee7
lea edi, [ebp - 0x28a4]
jmp 0x10a5f71
test ebx, ebx
jne 0x10a5f7a
push 1
push edi
push dword [ebp - 0x515c]
push dword [ebp - 0x5160]
call fcn.010a5a62
push edi
movsx ebx, ax
call esi
mov ecx, 0x7fffffff
sub ecx, eax
mov eax, dword [ebp - 0x5150]
lea eax, [eax + ecx*2]
push edi
mov dword [ebp - 0x5150], eax
call esi
pop ecx
pop ecx
lea edi, [edi + eax*2 + 2]
cmp dword [ebp - 0x5150], 2
ja 0x10a5f34
inc dword [ebp - 0x5154]
xor edi, edi
test ebx, ebx
je 0x10a5e5a
pop ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x514c]
push eax
mov eax, dword [0x10ecaf0]
call dword [eax + 0xc]
jmp 0x10a5faa
mov dword [0x10ecd04], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 4