Function at 0x10022520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024115
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x1002b0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov ecx, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 0x28], eax
mov edx, dword [eax + 0x78]
mov eax, dword [edx + ebx + 0x24]
add edx, ebx
add eax, ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
mov edi, dword [edx + 0x1c]
mov eax, dword [edx + 0x20]
add edi, ebx
add eax, ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
test ecx, 0xffff0000
jne 0x100225a7
movzx esi, cx
mov ecx, dword [edx + 0x10]
cmp esi, ecx
jb 0x1002262f
mov eax, dword [edx + 0x14]
add eax, ecx
cmp esi, eax
ja 0x1002262f
sub esi, ecx
mov esi, dword [edi + esi*4]
add esi, ebx
jmp 0x10022604
mov eax, dword [edx + 0x18]
xor edi, edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10022604
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + edi*4]
add eax, ebx
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100225e0
test dl, dl
je 0x100225dc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100225e0
add ecx, 2
add eax, 2
test dl, dl
jne 0x100225c0
xor eax, eax
jmp 0x100225e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100225f8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + edi*2]
mov esi, dword [ecx + eax*4]
add esi, ebx
mov ecx, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp - 0x20]
jb 0x100225b3
mov edx, dword [ebp - 0x24]
cmp esi, edx
jb 0x1002273e
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x7c]
add eax, edx
cmp esi, eax
jae 0x1002273e
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x10022643
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2e
push edi
xor esi, esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov ebx, eax
add esp, 8
mov ecx, 0x29
xor edx, edx
mov byte [ebx], 0
nop dword [eax]
mov al, byte [edx + 0x10028188]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x4c], al
and ecx, 0x800000ff
jns 0x1002267d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x10
jl 0x10022660
mov byte [ebp - 0x3c], 0
mov dword [ebp - 4], 0
call fcn.100224f0
lea edx, [ebp - 0x4c]
mov ecx, eax
call fcn.10022520
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x1002272a
mov ecx, 0x6c
xor edx, edx
nop
mov al, byte [edx + 0x1002819c]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x38], al
and ecx, 0x800000ff
jns 0x100226dd
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xc
jl 0x100226c0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.100224f0
lea edx, [ebp - 0x38]
mov ecx, eax
call fcn.10022520
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x14]
call dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10022734
lea edx, [ebx + 1]
call fcn.10022520
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret