Function at 0x10995fd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5158
call fcn.0106f850
push esi
push edi
xor edi, edi
cmp dword [0x10dd4b4], edi
jne 0x109986b
call fcn.0108e493
test ax, ax
jne 0x109986b
cmp dword [0x10dd2a4], edi
mov eax, dword [0x10dd2a0]
jne 0x1099742
cmp eax, edi
jne 0x109970c
push 0x1004ab4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x10dd2a4], eax
je 0x10996ff
push 1
push 0x20
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10dd2a0], eax
je 0x1099875
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a94
mov dword [eax + 4], edi
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
push 0x1004a74
mov dword [ecx + 8], eax
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
push 0x1004a54
mov dword [ecx + 0xc], eax
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
push 0x1004a34
mov dword [ecx + 0x10], eax
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
push 0x1004a10
mov dword [ecx + 0x14], eax
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
push 0x10049c4
mov dword [ecx + 0x18], eax
push dword [0x10dd2a4]
call esi
mov ecx, dword [0x10dd2a0]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x10dd2a0]
cmp eax, edi
je 0x1099875
cmp dword [eax + 8], edi
je 0x1099875
cmp dword [eax + 0xc], edi
je 0x1099875
cmp dword [eax + 0x10], edi
je 0x1099875
cmp dword [eax + 0x14], edi
je 0x1099875
cmp dword [eax + 0x18], edi
je 0x1099875
cmp dword [eax + 0x1c], edi
je 0x1099875
lea ecx, [ebp - 0xc]
push ecx
push 0x120
mov dword [ebp - 4], edi
push dword [eax + 4]
call dword [eax + 8]
test eax, eax
jne 0x1099875
push dword [ebp - 0xc]
mov eax, dword [0x10dd2a0]
mov dword [ebp - 0x10], edi
call dword [eax + 0x10]
test eax, eax
jne 0x1099859
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov eax, dword [0x10dd2a0]
push dword [ebp - 0xc]
call dword [eax + 0x14]
mov ebx, eax
cmp ebx, edi
jne 0x10997da
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov eax, dword [0x10dd2a0]
push dword [ebp - 0xc]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, edi
jne 0x10997da
mov eax, 0x28a0
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5158]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28b8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
mov eax, dword [0x10dd2a0]
push dword [ebp - 0xc]
call dword [eax + 0x1c]
mov ebx, eax
lea edi, [ebp - 0x28b8]
jmp 0x109980c
test ebx, ebx
jne 0x1099812
push ebx
push edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.010993f0
push edi
movsx ebx, ax
call esi
push 0xfffffffffffffffe
shl eax, 1
pop ecx
sub ecx, eax
add dword [ebp - 4], ecx
push edi
call esi
pop ecx
pop ecx
lea edi, [edi + eax*2 + 2]
cmp dword [ebp - 4], 2
ja 0x10997e2
lea edi, [ebp - 0x5158]
jmp 0x1099845
test ebx, ebx
jne 0x109984b
push 1
push edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.010993f0
push edi
movsx ebx, ax
call esi
push 0xfffffffffffffffe
shl eax, 1
pop ecx
sub ecx, eax
add dword [ebp - 8], ecx
push edi
call esi
pop ecx
pop ecx
lea edi, [edi + eax*2 + 2]
cmp dword [ebp - 8], 2
ja 0x109981a
inc dword [ebp - 0x10]
xor edi, edi
test ebx, ebx
je 0x1099779
pop ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10dd2a0]
call dword [eax + 0xc]
jmp 0x1099875
mov dword [0x10dd4b4], 1
pop edi
pop esi
leave
ret 4