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

Disassembly:
mov eax, 0x10a8
call fcn.1003c310
mov eax, dword [0x1008f304]
xor eax, esp
mov dword [esp + 0x10a4], eax
mov eax, dword [esp + 0x10b8]
xor edx, edx
mov ecx, dword [esp + 0x10bc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], 1
mov dword [esp], edx
push ebx
mov ebx, dword [esp + 0x10b0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], ebx
push ebp
mov ebp, dword [esp + 0x10bc]
mov dword [esp + 0xc], ebp
push esi
push edi
mov edi, edx
test eax, eax
jne 0x10022788
test ebp, ebp
je 0x10022f2f
mov dword [ebp], 0x63
jmp 0x10022f2f
mov dword [eax], edx
test ebp, ebp
je 0x10022791
mov dword [ebp], edx
test ecx, ecx
jne 0x1002279d
push 0x10
pop ecx
jmp 0x10022f02
cmp dword [esp + 0x10d0], edx
mov esi, dword [esp + 0x10c0]
mov dword [ecx], edx
mov ecx, 0x10088330
cmovne ecx, dword [esp + 0x10d0]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], ecx
lea eax, [ecx + 0x100]
mov dword [esp + 0x48], eax
lea eax, [ecx + 0x200]
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x340]
mov dword [esp + 0x50], eax
test esi, 0xd8038580
je 0x100227ef
push 0x11
jmp 0x10022ef3
cmp byte [ebx], 0x28
push 0xa
pop ecx
jne 0x1002294d
mov ebp, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
cmp byte [ebx + edi + 1], 0x2a
jne 0x1002294a
push 5
add ebx, 2
add ebx, edi
push str.UTF8_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x10022830
add edi, 7
or esi, 0x800
jmp 0x10022936
push 4
push str.UCP_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x1002284f
add edi, 6
or esi, 0x20000000
jmp 0x10022936
push 0xd
push str.NO_START_OPT_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x1002286e
add edi, 0xf
or esi, 0x4000000
jmp 0x10022936
push 3
push 0x10086f64
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x10022889
add edi, 5
mov eax, 0x100000
jmp 0x100228f3
push 3
push 0x10086f68
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x100228a4
add edi, 5
mov eax, 0x200000
jmp 0x100228f3
push 5
push str.CRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x100228bf
add edi, 7
mov eax, 0x300000
jmp 0x100228f3
push 4
push str.ANY_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x100228da
add edi, 6
mov eax, 0x400000
jmp 0x100228f3
push 8
push str.ANYCRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x100228fd
add edi, 0xa
mov eax, 0x500000
and esi, 0xff8fffff
or esi, eax
jmp 0x10022936
push 0xc
push str.BSR_ANYCRLF_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x10022915
mov eax, 0x800000
jmp 0x1002292b
push 0xc
push str.BSR_UNICODE_
push ebx
call ebp
add esp, 0xc
test eax, eax
jne 0x10022946
mov eax, 0x1000000
and esi, 0xfe7fffff
or esi, eax
add edi, 0xe
mov ebx, dword [esp + 0x2c]
cmp byte [ebx + edi], 0x28
je 0x10022801
jmp 0x1002294a
mov ebx, dword [esp + 0x2c]
push 0xa
pop ecx
mov ebp, esi
shr ebp, 0xb
and ebp, 1
mov dword [esp + 0x1c], ebp
je 0x10022962
push 0x20
jmp 0x10022eef
test esi, 0x20000000
je 0x10022971
push 0x43
jmp 0x10022eef
mov edx, 0x1800000
mov eax, esi
and eax, edx
cmp eax, edx
je 0x10022eed
mov eax, esi
push 2
pop edx
and eax, 0x700000
je 0x100229fd
cmp eax, 0x100000
je 0x100229de
cmp eax, 0x200000
je 0x100229e1
cmp eax, 0x300000
je 0x100229be
cmp eax, 0x400000
je 0x100229fd
cmp eax, 0x500000
jne 0x10022eed
mov dword [esp + 0xa8], edx
jmp 0x10022a08
and dword [esp + 0xa8], 0
mov dword [esp + 0xac], edx
mov byte [esp + 0xb0], 0xd
mov byte [esp + 0xb1], cl
jmp 0x10022a08
push 0xd
pop ecx
and dword [esp + 0xa8], 0
mov dword [esp + 0xac], 1
mov byte [esp + 0xb0], cl
jmp 0x10022a08
mov dword [esp + 0xa8], 1
xor ecx, ecx
mov dword [esp + 0x78], 0x1000
lea eax, [esp + 0xb4]
mov dword [esp + 0x88], ecx
push ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, ebx
mov dword [esp + 0x98], esi
mov dword [esp + 0x64], eax
xor ecx, ecx
lea eax, [ebx + edi]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x98], ecx
push eax
push ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x94], ecx
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xac], ecx
push eax
push ecx
push ecx
push ecx
push ecx
lea eax, [esp + 0x38]
mov dword [esp + 0x8c], ecx
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0xe0], 0x7d
push eax
lea eax, [esp + 0x54]
push eax
push esi
call fcn.10021424
mov ecx, dword [esp + 0x48]
add esp, 0x38
test ecx, ecx
jne 0x10022dff
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10000
jle 0x10022af7
push 0x14
jmp 0x10022eef
mov eax, dword [esp + 0x74]
lea esi, [ecx + 0x28]
imul eax, dword [esp + 0x70]
add esi, eax
push esi
call dword [0x1008f210]
mov edi, eax
pop ecx
test edi, edi
jne 0x10022b1a
push 0x15
jmp 0x10022eef
mov dword [edi], 0x50435245
xor ecx, ecx
mov dword [edi + 4], esi
mov eax, dword [esp + 0x94]
mov dword [edi + 8], eax
mov ax, word [esp + 0x98]
mov word [edi + 0xc], ax
xor eax, eax
mov dword [edi + 0x14], eax
push 0x28
pop eax
mov word [edi + 0x18], ax
mov ax, word [esp + 0x74]
mov word [edi + 0x1a], ax
mov ax, word [esp + 0x70]
mov word [edi + 0x1c], ax
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [esp + 0x30]
cmp eax, 0x10088330
cmove eax, ecx
xor edx, edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x70], edx
movzx ecx, word [edi + 0x18]
add ecx, edi
mov dword [esp + 0x6c], ecx
movzx eax, word [edi + 0x1a]
movzx ebx, word [edi + 0x1c]
imul ebx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
push edx
mov dword [esp + 0x1c], eax
add ebx, ecx
lea eax, [esp + 0x48]
mov dword [esp + 0x5c], ebx
push eax
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0xa8], edx
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0xb0], edx
push eax
push edx
push edx
push edx
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0xc8], edx
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x8c], edx
push eax
lea eax, [esp + 0x50]
mov byte [ebx], 0x7d
push eax
push dword [edi + 8]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ebx
call fcn.10021424
mov ax, word [esp + 0xb0]
add esp, 0x34
mov word [edi + 0x10], ax
mov ax, word [esp + 0x88]
mov word [edi + 0x12], ax
mov ax, word [esp + 0x84]
mov word [edi + 0xe], ax
mov eax, dword [esp + 0x98]
or eax, 1
or edx, 0xffffffff
mov word [edi + 0xc], ax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0xa0], 0
mov ecx, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x34], eax
test ecx, ecx
jne 0x10022c78
mov eax, dword [esp + 0x18]
push 0x16
pop edx
cmp byte [eax], cl
cmovne ecx, edx
or edx, 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
push 0x17
pop ecx
mov byte [eax], 0
sub eax, ebx
mov esi, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
cmovg esi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], esi
cmp eax, ecx
jbe 0x10022d1c
mov dword [esp + 0x20], edx
xor edx, edx
test esi, esi
jne 0x10022d1c
cmp eax, ecx
jbe 0x10022d18
sub eax, 2
mov dword [esp + 0x68], eax
movzx ebp, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ebp, eax
movzx esi, byte [ebx + ebp]
movzx eax, byte [ebx + ebp + 1]
shl esi, 8
or esi, eax
cmp esi, dword [esp + 0x20]
je 0x10022ce9
push esi
push dword [esp + 0x20]
push ebx
call fcn.1001d67d
add esp, 0xc
mov dword [esp + 0x20], esi
mov edx, eax
test edx, edx
je 0x10022d11
mov ecx, edx
mov al, dl
sub ecx, ebx
sub al, bl
sar ecx, 8
mov byte [ebx + ebp], cl
mov byte [ebx + ebp + 1], al
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x10022d18
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x54]
jmp 0x10022caa
push 0x35
pop esi
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x78], 0x1000
jle 0x10022d35
push dword [esp + 0x54]
call dword [0x1008f214]
mov esi, dword [esp + 0x14]
pop ecx
test esi, esi
jne 0x10022d4b
mov ax, word [edi + 0x12]
cmp ax, word [edi + 0x10]
push 0xf
pop eax
cmova esi, eax
mov dword [esp + 0x10], esi
cmp dword [esp + 0xa4], 0
je 0x10022def
push 0xffffffffffffffff
push ebp
push ebx
call fcn.1001d67d
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x10022def
movzx ecx, byte [ebp + 1]
movzx eax, byte [ebp + 2]
shl ecx, 8
or ecx, eax
jne 0x10022dd3
movzx esi, byte [ebp - 2]
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x44]
push eax
push 1
mov bl, byte [esi + ebp - 3]
mov byte [esi + ebp - 3], cl
mov eax, dword [edi + 8]
shr eax, 0xb
and eax, 1
push eax
push ebp
call fcn.10021cdf
mov edx, eax
mov byte [esi + ebp - 3], bl
add esp, 0x10
test edx, edx
js 0x10022e08
mov ecx, dword [esp + 0x84]
cmp edx, ecx
cmovg ecx, edx
sar eax, 8
mov dword [esp + 0x84], ecx
mov byte [ebp + 1], al
mov byte [ebp + 2], dl
push 0xffffffffffffffff
push dword [esp + 0x20]
lea eax, [ebp + 3]
push eax
call fcn.1001d67d
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x10022d6f
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10022e23
push edi
call dword [0x1008f214]
pop ecx
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
jmp 0x10022ef4
push 0x19
pop esi
push 0x46
pop eax
cmp edx, 0xfffffffc
push 0x24
cmove esi, eax
cmp edx, 0xfffffffe
pop eax
cmove esi, eax
mov dword [esp + 0x10], esi
jmp 0x10022def
mov ebx, dword [edi + 8]
mov ebp, 0x10000000
test bl, 0x10
jne 0x10022ead
push dword [esp + 0x8c]
mov esi, dword [esp + 0x34]
push 0
push esi
call fcn.1003d210
add esp, 0xc
test eax, eax
je 0x10022e52
or ebx, 0x10
mov dword [edi + 8], ebx
jmp 0x10022ead
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x10022e89
push 0
push esi
call fcn.10021be8
pop ecx
pop ecx
test eax, eax
jns 0x10022e89
push dword [esp + 0x8c]
push 0
push esi
call fcn.100225c3
add esp, 0xc
test eax, eax
je 0x10022ead
mov eax, 0x100
or word [edi + 0xc], ax
jmp 0x10022ead
movzx edx, al
mov word [edi + 0x14], dx
test ebp, eax
je 0x10022ea8
mov eax, dword [esp + 0x48]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x10022ea8
or word [edi + 0xc], 0x20
or word [edi + 0xc], 0x10
mov eax, dword [esp + 0x34]
test eax, eax
js 0x10022ee9
test bl, 0x10
je 0x10022ec1
test eax, 0x20000000
je 0x10022ee9
movzx edx, al
mov word [edi + 0x16], dx
test ebp, eax
je 0x10022ee4
mov eax, dword [esp + 0x48]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x10022ee4
mov eax, 0x80
or word [edi + 0xc], ax
or word [edi + 0xc], 0x40
mov eax, edi
jmp 0x10022f31
push 0x38
mov ebp, dword [esp + 0x18]
pop ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x2c]
mov dword [edx], eax
mov esi, ecx
mov edx, str.no_error
jmp 0x10022f17
mov al, byte [edx]
inc edx
test al, al
jne 0x10022f0b
cmp byte [edx], al
je 0x10022f1d
dec esi
test esi, esi
jg 0x10022f0b
jmp 0x10022f22
mov edx, str.Error_text_not_found__please_report_
mov eax, dword [esp + 0x40]
mov dword [eax], edx
test ebp, ebp
je 0x10022f2f
mov dword [ebp], ecx
xor eax, eax
mov ecx, dword [esp + 0x10b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003c212
add esp, 0x10a8
ret