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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [eax + 0x14]
push edi
mov edi, dword [eax]
lea edx, [edx + edx*2]
shl edx, 4
add ebx, edx
mov dword [ebp - 0x20], edi
push 0
mov ecx, dword [edi]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebx]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
push 0x1a0
test ecx, ecx
je 0x4e7f8f
push ecx
call fcn.0050c410
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x14], esi
jmp 0x4e7f9c
call fcn.0051c920
add esp, 8
mov dword [ebp - 0x14], eax
mov esi, eax
test esi, esi
je 0x4e7fb0
push 0x1a0
push 0
push esi
call fcn.0048e2e0
add esp, 0xc
mov dword [ebx + 0x1c], esi
test esi, esi
je 0x4e8877
or word [ebx + 0xa], 0x10
mov ebx, dword [ebp - 0x14]
push 0x180
push 0
lea esi, [ebx + 0x18]
push esi
call fcn.0048e2e0
push 0x2b
push dword [ebp - 0x34]
mov dword [ebx], edi
push ebx
mov byte [ebx + 9], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 8
mov dword [ebx + 0x14], esi
call fcn.005413a0
mov esi, dword [ebx + 0xc]
add esp, 0x18
sub esi, 1
mov eax, dword [ebp + 8]
js 0x4e8023
lea ebx, [ebx]
push esi
push ebx
push eax
call fcn.004e6fb0
mov eax, dword [ebp + 8]
add esp, 0xc
sub esi, 1
jns 0x4e8010
mov ecx, dword [ebp - 8]
cmp byte [ecx + 0x51], 0
jne 0x4e8877
mov eax, dword [ebx + 0xc]
or edx, 0xffffffff
mov ebx, dword [ebx + 0x14]
or edi, 0xffffffff
or esi, 0xffffffff
mov dword [ebp - 0x10], edx
sub eax, 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc], ebx
js 0x4e82c2
mov edi, edi
mov eax, edx
or eax, edi
je 0x4e82bf
movzx eax, word [ebx + 0xc]
test eax, 0x1ff
jne 0x4e81d1
xor esi, esi
push esi
push 0x198
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.0050c410
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e82b1
or word [ebx + 0xa], 0x20
mov eax, 0x400
push 0x180
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
lea esi, [edi + 0x18]
push 0
push esi
mov dword [ebx + 0x1c], edi
mov word [ebx + 0xc], ax
call fcn.0048e2e0
mov eax, dword [ebp + 0xc]
push 0x2c
mov eax, dword [eax]
mov dword [edi], eax
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
push dword [ebx]
push edi
call fcn.005413a0
mov esi, dword [edi + 0xc]
add esp, 0x18
sub esi, 1
js 0x4e8113
mov ebx, dword [ebp + 8]
lea esp, [esp]
push esi
push edi
push ebx
call fcn.004e6fb0
add esp, 0xc
sub esi, 1
jns 0x4e8100
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
cmp byte [ecx + 0x51], 0
jne 0x4e818b
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0xc]
test edi, edi
jle 0x4e8188
lea esp, [esp]
mov eax, dword [ebx]
mov al, byte [eax]
cmp al, 0x31
je 0x4e814f
cmp al, 0x35
jb 0x4e8140
cmp al, 0x39
jbe 0x4e814f
cmp al, 0x32
je 0x4e814f
cmp al, 0x2d
je 0x4e814f
cmp word [ebx + 0xc], 0x40
jne 0x4e817d
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edx, dword [ecx + 0x1ec]
test edx, edx
jle 0x4e8173
mov esi, dword [ebx + 0x14]
add ecx, 0x1f0
cmp dword [ecx], esi
je 0x4e81ba
inc eax
add ecx, 4
cmp eax, edx
jl 0x4e8167
xor ecx, ecx
xor edx, edx
or dword [ebp - 0x28], ecx
or dword [ebp - 0x2c], edx
add ebx, 0x30
sub edi, 1
jne 0x4e8130
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
and edx, dword [ebp - 0x28]
and edi, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
add ebx, 0x30
dec eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
test eax, eax
jns 0x4e8060
jmp 0x4e82c2
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4e8177
movzx eax, word [ebx + 0xa]
test al, 8
jne 0x4e819d
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edi, dword [ecx + 0x1ec]
test edi, edi
jle 0x4e81fd
mov edx, dword [ebx + 0x14]
add ecx, 0x1f0
cmp dword [ecx], edx
je 0x4e8272
inc eax
add ecx, 4
cmp eax, edi
jl 0x4e81f1
xor esi, esi
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xa]
test al, 2
je 0x4e8247
xor edx, edx
test edi, edi
jle 0x4e823c
mov eax, dword [ecx + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x14]
add ecx, ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ebp - 0x20]
add eax, 0x1f0
lea esp, [esp]
cmp dword [eax], ecx
je 0x4e828c
inc edx
add eax, 4
cmp edx, edi
jl 0x4e8230
xor eax, eax
xor ecx, ecx
or esi, eax
or ebx, ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
and edx, esi
movzx eax, word [ecx + 0xc]
and edi, ebx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], edi
test al, 2
jne 0x4e82a3
mov ebx, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
jmp 0x4e81a0
xor esi, esi
xor ebx, ebx
bts esi, eax
cmp eax, 0x20
cmovae ebx, esi
xor esi, ebx
cmp eax, 0x40
cmovae ebx, esi
jmp 0x4e8201
xor eax, eax
xor ecx, ecx
bts eax, edx
cmp edx, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edx, 0x40
cmovae ecx, eax
jmp 0x4e8240
and dword [ebp - 4], esi
and dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
jmp 0x4e819d
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
jmp 0x4e81a0
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov ecx, 0x200
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x198], edx
or edx, edi
mov dword [ebx + 0x19c], edi
mov word [eax + 0xc], cx
je 0x4e84a4
mov eax, dword [ebp + 0xc]
mov byte [eax + 9], 1
cmp dword [ebx + 0xc], 2
jne 0x4e84a4
mov ecx, dword [ebx + 0x14]
xor edx, edx
xor ebx, ebx
lea ecx, [ecx]
mov eax, 0x400
cmp word [ecx + 0xc], ax
je 0x4e8314
xor edi, edi
test edx, edx
cmove edi, ecx
jmp 0x4e8325
mov eax, dword [ecx + 0x1c]
cmp edx, dword [eax + 0xc]
jge 0x4e8323
mov edi, dword [eax + 0x14]
add edi, ebx
jmp 0x4e8325
xor edi, edi
inc edx
mov dword [ebp - 0x1c], edi
add ebx, 0x30
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x4e849e
xor edx, edx
xor ebx, ebx
jmp 0x4e8350
mov edi, dword [ebp - 0x1c]
jmp 0x4e8348
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
jmp 0x4e8350
mov eax, dword [ebp - 0x14]
mov esi, 0x400
mov ecx, dword [eax + 0x14]
cmp word [ecx + 0x3c], si
lea eax, [ecx + 0x30]
je 0x4e836d
xor esi, esi
test edx, edx
cmove esi, eax
jmp 0x4e837e
mov esi, dword [eax + 0x1c]
cmp edx, dword [esi + 0xc]
jge 0x4e837c
mov esi, dword [esi + 0x14]
add esi, ebx
jmp 0x4e837e
xor esi, esi
inc edx
add ebx, 0x30
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x4e8493
movzx ecx, word [edi + 0xc]
movzx edx, word [esi + 0xc]
mov eax, ecx
or eax, edx
movzx ebx, ax
test cl, 0x3e
je 0x4e8345
test dl, 0x3e
mov edx, dword [ebp - 0xc]
je 0x4e8348
mov eax, ebx
and eax, 0x1a
cmp ax, bx
je 0x4e83c0
mov eax, ebx
and eax, 0x26
cmp ax, bx
jne 0x4e8348
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [eax + 0xc]
mov eax, dword [edi]
push dword [eax + 0xc]
push 0
call fcn.00511370
mov edx, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x4e8348
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [eax + 0x10]
mov eax, dword [edi]
push dword [eax + 0x10]
push 0
call fcn.00511370
mov edx, dword [ebp - 0xc]
add esp, 0x10
test eax, eax
jne 0x4e8348
mov ecx, ebx
lea eax, [ecx - 1]
test ecx, eax
je 0x4e841b
test bl, 0x18
mov eax, 8
mov ebx, 0x20
cmovne ebx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x4e8348
push 0
push 0
push eax
push ecx
call fcn.004e8f30
mov edx, dword [ebp - 0xc]
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4e8340
movzx esi, bx
mov edx, 0x35
cmp esi, 2
je 0x4e8470
xor ecx, ecx
mov edi, 2
inc ecx
mov eax, edi
shl eax, cl
inc edx
cmp esi, eax
jne 0x4e8463
mov edi, dword [ebp - 0x38]
mov ebx, dword [ebp + 0xc]
push 3
push edi
push ebx
mov byte [edi], dl
call fcn.0054dd30
push eax
push ebx
push dword [ebp + 8]
call fcn.004e6fb0
mov edi, dword [ebp - 0x1c]
add esp, 0x18
jmp 0x4e8345
mov edx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
jmp 0x4e8300
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
mov eax, esi
or eax, dword [ebp - 0x18]
je 0x4e8877
xor eax, eax
mov edx, 0xffbf
or ecx, 0xffffffff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], ecx
nop
test eax, eax
jne 0x4e85fe
mov edi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0xc]
sub ebx, 1
js 0x4e8877
and word [edi + 0xa], dx
mov esi, dword [edi + 0x14]
cmp esi, ecx
je 0x4e8519
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edx, dword [ecx + 0x1ec]
test edx, edx
jle 0x4e8503
add ecx, 0x1f0
cmp dword [ecx], esi
je 0x4e8528
inc eax
add ecx, 4
cmp eax, edx
jl 0x4e84f7
xor ecx, ecx
xor edx, edx
and ecx, dword [ebp - 4]
and edx, dword [ebp - 0x18]
or ecx, edx
jne 0x4e853f
mov ecx, dword [ebp - 0x1c]
mov edx, 0xffbf
add edi, 0x30
sub ebx, 1
jns 0x4e84d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
jmp 0x4e8507
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x1c], esi
lea esi, [edi + 0xa]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 0xc]
mov eax, 1
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jmp 0x4e8560
test eax, eax
je 0x4e85db
mov edi, dword [ebp - 0x1c]
cmp dword [esi + 0xa], edi
je 0x4e8576
mov ecx, 0xffbf
and word [esi], cx
jmp 0x4e85cd
cmp dword [esi + 0x12], ecx
jne 0x4e85c8
cmp ecx, 0xfffffffe
jne 0x4e8598
mov eax, dword [esi - 0xa]
push 0xffffffffffffffff
push edx
push dword [eax + 0xc]
push dword [ebp - 0x24]
call fcn.00511370
add esp, 0x10
test eax, eax
jne 0x4e85c8
mov eax, dword [esi - 0xa]
push dword [eax + 0x10]
call fcn.0050e410
movsx edi, al
mov eax, dword [esi - 0xa]
push dword [eax + 0xc]
call fcn.0050e410
add esp, 8
movsx eax, al
test edi, edi
je 0x4e85bf
cmp edi, eax
jne 0x4e85c8
or word [esi], 0x40
mov eax, dword [ebp - 0x2c]
jmp 0x4e85cd
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x38]
add esi, 0x30
sub ebx, 1
mov edx, dword [ebp - 0x28]
jns 0x4e8560
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
inc edx
mov ebx, dword [ebp - 0x14]
cmp edx, 2
mov dword [ebp - 0x30], edx
mov edx, 0xffbf
jl 0x4e84c0
test eax, eax
je 0x4e8877
mov ecx, dword [ebp - 0x14]
xor edi, edi
xor eax, eax
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub ecx, 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
js 0x4e878b
lea ebx, [ebx]
test byte [esi + 0xa], 0x40
je 0x4e8761
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4e8648
push 0
push 0
push eax
push dword [ebp - 8]
call fcn.004e8f30
add esp, 0x10
mov dword [ebp - 0x28], eax
jmp 0x4e864f
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ebx, dword [eax]
test edi, edi
jne 0x4e8677
push edi
push 0x18
push ebx
call fcn.0050c410
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4e8713
xor edx, edx
jmp 0x4e873a
mov edx, dword [edi]
lea ecx, [edx - 1]
test edx, ecx
jne 0x4e873a
mov eax, edx
mov ecx, 2
imul ecx
add eax, 0xffffffff
mov ecx, eax
adc edx, 0xffffffff
mov esi, edx
shld esi, ecx, 2
shl ecx, 2
add eax, ecx
adc edx, esi
shld edx, eax, 2
shl eax, 2
add eax, 0x18
mov dword [ebp - 0x30], eax
adc edx, 0
mov dword [ebp - 0x2c], edx
cmp edi, dword [ebx + 0x14c]
jae 0x4e8700
cmp edi, dword [ebx + 0x144]
jb 0x4e86d6
test edx, edx
ja 0x4e8700
jb 0x4e86d2
cmp eax, 0x80
ja 0x4e8700
mov eax, edi
jmp 0x4e870c
cmp edi, dword [ebx + 0x148]
jb 0x4e8700
movzx eax, word [ebx + 0x11e]
cdq
mov ecx, eax
cmp dword [ebp - 0x2c], edx
ja 0x4e86fa
jb 0x4e86d2
mov eax, dword [ebp - 0x30]
cmp eax, ecx
ja 0x4e86fd
mov eax, edi
jmp 0x4e870c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
push edx
push eax
push edi
push ebx
call fcn.004e54f0
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test eax, eax
jne 0x4e8736
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4e8724
push eax
push ebx
call fcn.00511640
add esp, 8
test edi, edi
je 0x4e8732
push edi
push ebx
call fcn.004e96a0
add esp, 8
xor edi, edi
jmp 0x4e8759
mov edx, dword [eax]
mov edi, eax
lea eax, [edx + edx*4]
lea ecx, [edi + eax*4]
lea eax, [edx + 1]
mov dword [edi], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
dec ecx
add esi, 0x30
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
test ecx, ecx
jns 0x4e8620
test eax, eax
je 0x4e878b
push 0
push 0
push eax
push dword [ebp - 8]
call fcn.004e8f30
add esp, 0x10
mov ebx, eax
jmp 0x4e878d
xor ebx, ebx
mov eax, dword [ebp - 0x24]
push 0
push 0x34
push dword [eax]
call fcn.0050c410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4e8855
push 0x34
push 0
push esi
call fcn.0048e2e0
or eax, 0xffffffff
mov byte [esi], 0x31
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
je 0x4e87d1
mov dword [esi + 0xc], ebx
mov eax, dword [ebx + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.004e9e20
mov ecx, dword [ebp - 0x24]
add esp, 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x4e87f6
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.0050e160
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp + 0xc]
push 3
push esi
mov eax, dword [ecx + 4]
and eax, 1
or dword [esi + 4], eax
movzx eax, word [ecx + 0x24]
push ebx
mov word [esi + 0x24], ax
mov dword [esi + 0x14], edi
call fcn.0054dd30
mov esi, eax
push esi
push ebx
push dword [ebp + 8]
call fcn.004e6fb0
mov eax, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov ecx, dword [ebp + 0x10]
add edx, edx
mov esi, dword [ebp - 0x3c]
add esp, 0x18
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
pop edi
movzx eax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [esi + eax + 0xe]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4e8867
mov eax, dword [ebp - 0x24]
push ebx
push dword [eax]
call fcn.00511640
add esp, 8
test edi, edi
je 0x4e8877
push edi
push dword [ebp - 8]
call fcn.004e96a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret