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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov ebp, ecx
mov ecx, dword [esp + 0x1c8]
call 0x4e9ebc
pop edi
mov dword [esp + 0xe4], edx
test ecx, ecx
mov dword [esp + 0xe8], ecx
je 0x4ea532
mov bl, byte [edx]
mov eax, ebx
not al
test al, 0x1f
je 0x4ea532
cmp ecx, 2
jb 0x4ea532
movzx eax, byte [edx + 1]
mov dword [esp + 0xec], 2
test al, al
js 0x4ea503
lea ecx, [esp + 0xe4]
mov edx, eax
call fcn.004e8363
xor ecx, ecx
test eax, eax
je 0x4ea534
cmp bl, 0x30
jne 0x4ea534
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
and dword [esp + 0x60], 0
test edx, edx
je 0x4ea532
mov bl, byte [eax]
mov ecx, ebx
not cl
test cl, 0x1f
je 0x4ea532
cmp edx, 2
jb 0x4ea532
mov dword [esp + 0x60], 2
movzx ecx, byte [eax + 1]
test cl, cl
js 0x4ea574
mov edx, ecx
lea ecx, [esp + 0x58]
call fcn.004e8363
xor ecx, ecx
test eax, eax
je 0x4ea534
cmp bl, 0x30
jne 0x4ea534
mov esi, eax
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], edx
cmp eax, ebx
jb 0x4ea797
jbe 0x4ea532
mov edx, dword [esp + 0x58]
mov ch, byte [edx + ebx]
mov cl, ch
not cl
test cl, 0x1f
je 0x4ea532
mov byte [esp + 0x18], ch
lea ecx, [ebx + 1]
cmp eax, ecx
jbe 0x4ea532
lea ecx, [ebx + 2]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x60], ecx
movzx edx, byte [edx + ebx + 1]
test dl, dl
js 0x4ea649
lea ecx, [esp + 0x58]
call fcn.004e8363
xor ecx, ecx
test eax, eax
je 0x4ea534
cmp byte [esp + 0x18], 0x30
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
jne 0x4ea534
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0x124]
lea edx, [esp + 0x58]
mov ecx, ebx
call fcn.004e9bf8
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0xe0], eax
je 0x4ea6d3
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x5c]
jne 0x4ea532
mov eax, dword [esp + 0xec]
cmp eax, dword [esp + 0xe8]
jne 0x4ea532
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x128]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
and dword [esp + 0x14], 0
mov dword [esp + 0xdc], eax
mov al, 0x1c
test ecx, ecx
mov dword [esp], eax
je 0x4eafcb
mov bl, byte [esi]
mov eax, ebx
not al
test al, 0x1f
je 0x4eafcb
cmp dword [esp + 8], 2
jb 0x4eafcb
mov dword [esp + 0x14], 2
movzx edx, byte [esi + 1]
test dl, dl
js 0x4ea6df
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
je 0x4eafcb
cmp bl, 0xa0
jne 0x4eafcb
lea ecx, [esp + 0x58]
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
call fcn.004e8ecd
cmp dl, 2
push 0x26
pop ecx
push 0x1c
pop esi
cmove esi, ecx
test al, 1
movzx eax, dl
cmove eax, esi
cmp al, 0x26
jne 0x4ea714
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x5c]
jne 0x4eafcb
lea esi, [esp + 0x58]
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.004e8394
mov eax, dword [esi]
test eax, eax
mov dword [esp + 8], eax
je 0x4ea75f
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x4eafc4
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov byte [esp + 7], dl
not dl
test dl, 0x1f
je 0x4eafc4
lea edx, [eax + 1]
cmp esi, edx
jbe 0x4eafc4
mov edx, dword [esp + 0x5c]
lea ebx, [eax + 2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xd8], edx
movzx edx, byte [ecx + eax + 1]
test dl, dl
js 0x4ea765
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
mov dword [esp], 0
je 0x4eafcb
cmp byte [esp + 7], 0x30
jne 0x4eafcb
mov ecx, eax
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.00419669
pop ecx
pop edx
mov cl, 0x1a
test al, al
mov dword [esp], ecx
je 0x4eafcb
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x4eafc4
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov byte [esp + 7], dl
not dl
test dl, 0x1f
je 0x4eafc4
lea edx, [eax + 1]
cmp esi, edx
jbe 0x4eafc4
lea ebx, [eax + 2]
mov dword [esp + 0x14], ebx
movzx edx, byte [ecx + eax + 1]
test dl, dl
js 0x4ea7f9
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
mov dword [esp + 0xd0], edx
mov dword [esp], 0
mov dword [esp + 0xd4], eax
je 0x4eafcb
cmp byte [esp + 7], 0x30
jne 0x4eafcb
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x4eafc4
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov byte [esp + 7], dl
not dl
test dl, 0x1f
je 0x4eafc4
lea edx, [eax + 1]
cmp esi, edx
jbe 0x4eafc4
lea ebx, [eax + 2]
mov dword [esp + 0x14], ebx
movzx edx, byte [ecx + eax + 1]
test dl, dl
js 0x4ea878
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
mov dword [esp + 0xcc], edx
mov dword [esp], 0
je 0x4eafcb
cmp byte [esp + 7], 0x30
jne 0x4eafcb
mov ebx, eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x4eafc4
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov byte [esp + 7], dl
not dl
test dl, 0x1f
je 0x4eafc4
lea edx, [eax + 1]
cmp esi, edx
jbe 0x4eafc4
lea edx, [eax + 2]
mov dword [esp + 0x14], edx
mov dword [esp], edx
movzx edx, byte [ecx + eax + 1]
test dl, dl
js 0x4ea8f7
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
mov dword [esp + 0xc4], edx
mov dword [esp], 0
mov dword [esp + 0xc8], eax
je 0x4eafcb
cmp byte [esp + 7], 0x30
jne 0x4eafcb
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x4eafc4
mov ecx, dword [esp + 0xc]
mov dl, byte [ecx + eax]
mov byte [esp + 7], dl
not dl
test dl, 0x1f
je 0x4eafc4
lea edx, [eax + 1]
cmp esi, edx
jbe 0x4eafc4
lea edx, [eax + 2]
mov dword [esp + 0x14], edx
mov dword [esp], edx
movzx edx, byte [ecx + eax + 1]
test dl, dl
js 0x4ea978
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
mov dword [esp], 0
je 0x4eafcb
cmp byte [esp + 7], 0x30
jne 0x4eafcb
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x1cc]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xbc], edx
and dword [esp + 0x58], 0
and dword [esp + 0x60], 0
and dword [esp + 0x68], 0
and dword [esp + 0x70], 0
and dword [esp + 0x78], 0
cmp eax, ecx
jne 0x4ea9af
mov dword [esp], 0
lea esi, [esp + 0x84]
lea eax, [esp + 0x59]
lea ecx, [esp + 0x18d]
push 0x27
push eax
mov ebx, ecx
push ecx
call fcn.005010b0
add esp, 0xc
push 0x10
pop ecx
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 8], 0
je 0x4eafcb
lea eax, [esp + 0x166]
push 0x27
push ebx
mov ebx, eax
push eax
call fcn.005010b0
add esp, 0xc
push 0x10
pop ecx
lea edi, [esp + 0x124]
lea esi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x4eafd6
lea eax, [ebp + 1]
push 0x27
push ebx
push eax
call fcn.005010b0
add esp, 0xc
lea edi, [ebp + 0x2c]
push 0x10
pop ecx
lea esi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov byte [ebp], al
mov dword [ebp + 0x28], ecx
jmp 0x4ea53b
cmp al, 0x82
je 0x4ea52b
cmp eax, 0x81
jne 0x4ea532
cmp ecx, 3
jb 0x4ea532
movzx eax, byte [edx + 2]
mov dword [esp + 0xec], 3
test al, al
jns 0x4ea532
jmp 0x4e9f01
cmp ecx, 3
jb 0x4ea532
jne 0x4ea546
xor ecx, ecx
mov byte [ebp], cl
and dword [ebp + 0x28], 0
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
mov dword [esp + 0xec], 4
shl ecx, 8
or eax, ecx
xor ecx, ecx
cmp eax, 0x100
jb 0x4ea534
cmp eax, 0xffff
jne 0x4e9f01
jmp 0x4ea534
add ecx, 0xffffff7f
cmp ecx, 3
ja 0x4ea532
mov ecx, dword [ecx*4 + 0x4eb0d4]
add ecx, edi
jmp ecx
cmp dl, 0x82
je 0x4ea681
cmp edx, 0x81
jne 0x4ea532
cmp eax, ecx
jbe 0x4ea532
mov ecx, ebx
mov ecx, dword [esp + 0x2c]
lea eax, [ebx + 3]
mov dword [esp + 0x60], eax
movzx edx, byte [ecx + ebx + 2]
test dl, dl
jns 0x4ea532
jmp 0x4e9fd8
cmp eax, ecx
jbe 0x4ea532
lea ecx, [ebx + 3]
cmp eax, ecx
jbe 0x4ea532
mov eax, dword [esp + 0x2c]
mov ecx, ebx
xor ecx, ecx
movzx edx, byte [eax + ebx + 2]
lea eax, [ebx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
shl edx, 8
movzx eax, byte [eax + ebx + 3]
or edx, eax
cmp edx, 0x100
jb 0x4ea534
cmp edx, 0xffff
jne 0x4e9fd8
jmp 0x4ea534
mov cl, byte [esp + 0x128]
jmp 0x4ea534
cmp dl, 0x82
je 0x4ea71c
cmp edx, 0x81
jne 0x4eafcb
cmp dword [esp + 8], 3
jb 0x4eafcb
mov dword [esp + 0x14], 3
movzx edx, byte [esi + 2]
test dl, dl
jns 0x4eafcb
jmp 0x4ea0a0
mov dword [esp], eax
jmp 0x4eafcb
cmp dword [esp + 8], 3
jb 0x4eafcb
je 0x4eafcb
movzx edx, byte [esi + 2]
mov dword [esp + 0x14], 4
movzx eax, byte [esi + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea0a0
jmp 0x4eafcb
mov al, byte [esp + 0x5c]
jmp 0x4ea714
cmp dl, 0x82
je 0x4ea7ac
cmp edx, 0x81
jne 0x4eafc4
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx + eax + 2]
test dl, dl
jns 0x4eafc4
jmp 0x4ea163
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value
push 0x57f948
call fcn.0050d590
pop eax
ud2
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
cmp esi, edx
jbe 0x4eafc4
lea esi, [eax + 4]
movzx edx, byte [ecx + eax + 2]
mov dword [esp], 0
mov dword [esp + 0x14], esi
movzx eax, byte [ecx + eax + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea163
jmp 0x4eafcb
cmp dl, 0x82
je 0x4ea82b
cmp edx, 0x81
jne 0x4eafc4
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx + eax + 2]
test dl, dl
jns 0x4eafc4
jmp 0x4ea1e9
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
cmp esi, edx
jbe 0x4eafc4
lea esi, [eax + 4]
movzx edx, byte [ecx + eax + 2]
mov dword [esp], 0
mov dword [esp + 0x14], esi
movzx eax, byte [ecx + eax + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea1e9
jmp 0x4eafcb
cmp dl, 0x82
je 0x4ea8aa
cmp edx, 0x81
jne 0x4eafc4
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx + eax + 2]
test dl, dl
jns 0x4eafc4
jmp 0x4ea25f
cmp esi, ebx
jbe 0x4eafc4
lea edx, [eax + 3]
cmp esi, edx
jbe 0x4eafc4
lea esi, [eax + 4]
movzx edx, byte [ecx + eax + 2]
mov dword [esp], 0
mov dword [esp + 0x14], esi
movzx eax, byte [ecx + eax + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea25f
jmp 0x4eafcb
cmp dl, 0x82
je 0x4ea92a
cmp edx, 0x81
jne 0x4eafc4
cmp esi, dword [esp]
jbe 0x4eafc4
lea edx, [eax + 3]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx + eax + 2]
test dl, dl
jns 0x4eafc4
jmp 0x4ea2d3
cmp esi, dword [esp]
jbe 0x4eafc4
lea edx, [eax + 3]
cmp esi, edx
jbe 0x4eafc4
lea esi, [eax + 4]
movzx edx, byte [ecx + eax + 2]
mov dword [esp], 0
mov dword [esp + 0x14], esi
movzx eax, byte [ecx + eax + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea2d3
jmp 0x4eafcb
cmp dl, 0x82
je 0x4eaf85
cmp edx, 0x81
jne 0x4eafc4
cmp esi, dword [esp]
jbe 0x4eafc4
lea edx, [eax + 3]
mov dword [esp + 0x14], edx
movzx edx, byte [ecx + eax + 2]
test dl, dl
jns 0x4eafc4
jmp 0x4ea34c
mov dl, 0x11
mov dword [esp], edx
jae 0x4eafcb
mov ebx, dword [esp + 0xc]
mov dl, byte [ebx + eax]
mov byte [esp + 8], dl
not dl
test dl, 0x1f
je 0x4eafcb
lea edx, [eax + 1]
cmp ecx, edx
jbe 0x4eafcb
lea esi, [eax + 2]
mov dword [esp + 0x14], esi
movzx edx, byte [ebx + eax + 1]
test dl, dl
js 0x4eafdf
lea ecx, [esp + 0xc]
call fcn.004e8363
test eax, eax
je 0x4eafcb
cmp byte [esp + 8], 0xa3
jne 0x4eafcb
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
and dword [esp + 0x48], 0
test edx, edx
je 0x4eb06e
mov bl, byte [eax]
mov ecx, ebx
not cl
test cl, 0x1f
je 0x4eb06e
cmp edx, 2
jb 0x4eb06e
mov dword [esp + 0x48], 2
movzx ecx, byte [eax + 1]
mov esi, ecx
test cl, cl
js 0x4eb03c
lea ecx, [esp + 0x40]
mov edx, esi
call fcn.004e8363
xor ecx, ecx
test eax, eax
je 0x4eb070
cmp bl, 0x30
jne 0x4eb070
lea ecx, [esp + 0x4c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor ecx, ecx
cmp edx, ecx
jbe 0x4eb06e
mov ebx, dword [esp + 0x4c]
mov al, byte [ebx + ecx]
mov byte [esp + 8], al
not al
test al, 0x1f
je 0x4eb06e
lea eax, [ecx + 1]
cmp edx, eax
jbe 0x4eb06e
lea esi, [ecx + 2]
mov dword [esp + 0x54], esi
movzx eax, byte [ebx + ecx + 1]
test al, al
jns 0x4eab1c
cmp esi, dword [esp]
jbe 0x4eafc4
lea edx, [eax + 3]
cmp esi, edx
jbe 0x4eafc4
lea esi, [eax + 4]
movzx edx, byte [ecx + eax + 2]
mov dword [esp], 0
mov dword [esp + 0x14], esi
movzx eax, byte [ecx + eax + 3]
shl edx, 8
or edx, eax
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea34c
jmp 0x4eafcb
mov dword [esp], 0
mov eax, dword [esp]
mov byte [ebp], al
jmp 0x4ea537
mov byte [ebp], 0
jmp 0x4ea537
cmp dl, 0x82
je 0x4eb005
cmp edx, 0x81
jne 0x4eafcb
cmp ecx, esi
jbe 0x4eafcb
lea ecx, [eax + 3]
mov dword [esp + 0x14], ecx
movzx edx, byte [ebx + eax + 2]
test dl, dl
jns 0x4eafcb
jmp 0x4ea9ef
cmp ecx, esi
jbe 0x4eafcb
lea edx, [eax + 3]
cmp ecx, edx
jbe 0x4eafcb
lea edx, [eax + 4]
movzx ecx, byte [ebx + eax + 2]
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + eax + 3]
shl ecx, 8
or edx, ecx
cmp edx, 0x100
jb 0x4eafcb
cmp edx, 0xffff
jne 0x4ea9ef
jmp 0x4eafcb
mov ecx, esi
cmp cl, 0x82
je 0x4eb067
cmp esi, 0x81
jne 0x4eb06e
cmp edx, 3
jb 0x4eb06e
mov dword [esp + 0x48], 3
movzx eax, byte [eax + 2]
test al, al
jns 0x4eb06e
mov esi, eax
jmp 0x4eaa4e
cmp edx, 3
jb 0x4eb06e
jne 0x4eb09d
xor ecx, ecx
mov dword [esp], ecx
jmp 0x4eafcb
movzx ecx, byte [eax + 2]
mov dword [esp + 0x48], 4
movzx eax, byte [eax + 3]
shl ecx, 8
or eax, ecx
xor ecx, ecx
cmp eax, 0x100
jb 0x4eb070
mov esi, eax
cmp esi, 0xffff
jne 0x4eaa4e
jmp 0x4eb070