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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd0
mov edi, dword [esp + 0xe8]
mov eax, 0xffffffec
cmp edi, 0xa
jb 0x4e5576
mov dword [esp + 4], ecx
mov ebp, dword [esp + 0xe4]
movzx eax, word [ebp]
movzx esi, word [ebp + 2]
movzx ebx, word [ebp + 4]
lea ecx, [eax + esi]
add ecx, ebx
add ecx, 6
sub edi, ecx
jae 0x4e4d9c
mov eax, 0xffffffec
jmp 0x4e5576
test eax, eax
je 0x4e4e08
mov dword [esp], ebx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0xec]
lea edx, [ebp + 6]
lea ebx, [eax + ebp]
add ebx, 6
mov dword [esp + 0x90], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x7c], edx
cmp ax, 4
jb 0x4e4e12
lea eax, [ebx - 4]
mov dword [esp + 0x78], eax
mov edx, dword [ebx - 4]
mov dword [esp + 0x70], edx
mov eax, 0xffffffff
cmp edx, 0x1000000
mov ebp, ebx
mov ebx, dword [esp]
jb 0x4e5576
shr edx, 0x18
bsr eax, edx
not eax
add eax, 9
mov dword [esp + 0x74], eax
test esi, esi
jne 0x4e4e6f
mov eax, 0xffffffb8
jmp 0x4e5576
mov dword [esp + 8], ebx
mov dword [esp + 0x78], edx
movzx edx, byte [edx]
mov dword [esp + 0x70], edx
cmp eax, 2
je 0x4e4e39
cmp eax, 3
mov ebx, dword [esp]
jne 0x4e4e49
movzx ecx, byte [ebp + 8]
shl ecx, 0x10
or edx, ecx
jmp 0x4e4e3c
mov ebx, dword [esp]
movzx ecx, byte [ebp + 7]
shl ecx, 8
add ecx, edx
mov dword [esp + 0x70], ecx
mov ebp, dword [esp + 8]
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4e5571
bsr ecx, edx
xor ecx, 0x1f
shl eax, 3
sub ecx, eax
add ecx, 9
mov dword [esp + 0x74], ecx
test esi, esi
je 0x4e4e08
lea edx, [esi + ebp]
mov dword [esp + 0x6c], ebp
cmp si, 4
jb 0x4e4ea5
lea eax, [edx - 4]
mov dword [esp + 0x68], eax
mov ecx, dword [edx - 4]
mov dword [esp + 0x60], ecx
mov eax, 0xffffffff
cmp ecx, 0x1000000
jb 0x4e5576
shr ecx, 0x18
bsr eax, ecx
not eax
jmp 0x4e4ee8
mov dword [esp + 0x68], ebp
movzx eax, byte [ebp]
mov dword [esp + 0x60], eax
cmp esi, 2
je 0x4e4ec4
cmp esi, 3
jne 0x4e4ed1
movzx ecx, byte [ebp + 2]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [ebp + 1]
shl ecx, 8
add ecx, eax
mov dword [esp + 0x60], ecx
movzx eax, byte [edx - 1]
test eax, eax
je 0x4e5571
bsr eax, eax
xor eax, 0x1f
shl esi, 3
sub eax, esi
add eax, 9
mov dword [esp + 0x64], eax
mov eax, 0xffffffb8
test ebx, ebx
je 0x4e5576
lea esi, [edx + ebx]
mov dword [esp + 0x5c], edx
cmp bx, 4
jb 0x4e4f36
lea eax, [esi - 4]
mov dword [esp + 0x58], eax
mov ecx, dword [esi - 4]
mov dword [esp + 0x50], ecx
mov eax, 0xffffffff
cmp ecx, 0x1000000
jb 0x4e5576
mov ebp, dword [esp + 0x4c]
shr ecx, 0x18
bsr eax, ecx
not eax
jmp 0x4e4f82
mov dword [esp + 0x58], edx
movzx eax, byte [edx]
mov dword [esp + 0x50], eax
cmp ebx, 2
je 0x4e4f5a
cmp ebx, 3
mov ebp, dword [esp + 0x4c]
jne 0x4e4f6b
movzx ecx, byte [edx + 2]
shl ecx, 0x10
or eax, ecx
jmp 0x4e4f5e
mov ebp, dword [esp + 0x4c]
movzx ecx, byte [edx + 1]
shl ecx, 8
add ecx, eax
mov dword [esp + 0x50], ecx
movzx eax, byte [esi - 1]
test eax, eax
je 0x4e5571
bsr eax, eax
xor eax, 0x1f
shl ebx, 3
sub eax, ebx
add eax, 9
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x98]
mov edx, esi
push edi
call fcn.004ea4f0
add esp, 4
cmp eax, 0xffffff88
mov ecx, dword [esp + 4]
ja 0x4e5576
lea esi, [ecx + ebp]
add dword [esp + 0x90], 4
lea edx, [ebp + 3]
shr edx, 2
lea eax, [ecx + edx]
mov dword [esp + 0x80], eax
add eax, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
lea ebp, [eax + edx]
shr dword [esp + 0x88], 0x10
lea ecx, [esp + 0x70]
call fcn.004ea590
mov ebx, eax
lea ecx, [esp + 0x60]
call fcn.004ea590
mov edi, eax
or edi, ebx
lea ecx, [esp + 0x50]
call fcn.004ea590
mov ebx, eax
or ebx, edi
lea ecx, [esp + 0x98]
call fcn.004ea590
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x20], ecx
or eax, ebx
mov dword [esp + 0xb0], esi
jne 0x4e5581
lea eax, [esi - 7]
mov dword [esp + 0xcc], eax
cmp ebp, eax
jae 0x4e5581
mov dword [esp + 0xac], ebp
mov eax, dword [esp + 0x88]
neg eax
and eax, 0x1f
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xb4], eax
add eax, 4
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc8], eax
lea eax, [eax + 4]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
lea eax, [eax + 4]
mov dword [esp + 0xbc], eax
mov esi, dword [esp + 0xa4]
lea eax, [esi + 4]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0xa8], esi
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov ecx, ebx
shl ebp, cl
mov edx, dword [esp + 0x94]
mov ecx, edx
shr ebp, cl
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x30]
shl edi, cl
mov ecx, edx
shr edi, cl
mov ecx, dword [esp]
mov eax, dword [esp + 0x2c]
shl eax, cl
mov ecx, edx
mov esi, edx
shr eax, cl
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x90]
movzx eax, byte [edx + ebp*2 + 1]
add eax, ebx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
shl eax, cl
mov ebx, esi
mov ecx, ebx
shr eax, cl
mov dword [esp + 0x8c], eax
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
shl esi, cl
mov ecx, ebx
shr esi, cl
mov dword [esp + 0x24], esi
movzx ecx, byte [edx + ebp*2]
mov esi, dword [esp + 4]
mov byte [esi], cl
movzx ecx, byte [edx + edi*2 + 1]
add ecx, dword [esp + 8]
movzx eax, byte [edx + edi*2]
mov edi, dword [esp + 0x3c]
mov byte [esi + edi], al
mov eax, dword [esp + 0x38]
movzx ebx, byte [edx + eax*2 + 1]
add ebx, dword [esp]
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], ecx
shl ebp, cl
mov eax, dword [esp + 0x94]
mov ecx, eax
shr ebp, cl
mov edi, dword [esp + 0x2c]
mov dword [esp], ebx
mov ecx, ebx
shl edi, cl
mov ecx, eax
shr edi, cl
mov eax, dword [esp + 0x38]
movzx ecx, byte [edx + eax*2]
mov eax, dword [esp + 0x3c]
mov byte [esi + eax*2], cl
mov ecx, dword [esp + 0x8c]
movzx eax, byte [edx + ecx*2 + 1]
add eax, dword [esp + 0x14]
movzx ecx, byte [edx + ecx*2]
mov ebx, dword [esp + 0x10]
mov byte [esi + ebx], cl
mov ecx, dword [esp + 0x24]
movzx ecx, byte [edx + ecx*2 + 1]
add ecx, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp + 0x94]
shr ebx, cl
mov eax, dword [esp + 0x24]
movzx ecx, byte [edx + eax*2]
mov byte [esi + 1], cl
movzx ecx, byte [edx + ebp*2]
movzx eax, byte [edx + ebp*2 + 1]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
mov byte [esi + ebp + 1], cl
movzx ecx, byte [edx + edi*2]
mov byte [esp + 4], cl
movzx ecx, byte [edx + edi*2 + 1]
mov dword [esp + 0x24], ecx
movzx ecx, byte [esp + 4]
mov byte [esi + ebp*2 + 1], cl
movzx ecx, byte [edx + ebx*2]
movzx edi, byte [edx + ebx*2 + 1]
mov dword [esp + 0x38], esi
mov ebp, eax
mov byte [esi + eax + 1], cl
mov eax, 3
cmp dword [esp + 0xc], 0x20
mov dword [esp + 0x1c], edi
jbe 0x4e5290
mov dword [esp + 4], 3
jmp 0x4e5317
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0xc4]
jae 0x4e52e0
mov ebx, ecx
mov esi, dword [esp + 0xb4]
sub ebx, esi
je 0x4e5308
mov edi, dword [esp + 0xc]
shr edi, 3
mov ebp, ecx
sub ebp, edi
xor edx, edx
cmp ebp, esi
mov ebp, dword [esp + 0x10]
setb dl
mov dword [esp + 4], edx
cmovb edi, ebx
sub ecx, edi
shl edi, 3
sub dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
jmp 0x4e5317
mov edx, ecx
mov esi, dword [esp + 0xc]
mov ecx, esi
shr ecx, 3
sub edx, ecx
and esi, 7
mov dword [esp + 0xc], esi
mov dword [esp + 0x48], edx
mov ecx, dword [edx]
mov dword [esp + 0x34], ecx
mov dword [esp + 4], 0
jmp 0x4e5317
xor ecx, ecx
cmp dword [esp + 0xc], 0x20
sete cl
inc ecx
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x8c]
mov dword [esp + 8], ecx
cmp ecx, 0x20
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x28]
ja 0x4e53be
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0xc0]
jae 0x4e538d
mov edi, eax
sub edi, ecx
je 0x4e53af
mov ebp, dword [esp + 8]
mov edx, ebp
shr edx, 3
mov ebx, eax
sub ebx, edx
mov esi, eax
xor eax, eax
cmp ebx, ecx
mov ebx, dword [esp + 0x18]
setb al
cmovb edx, edi
sub esi, edx
shl edx, 3
sub ebp, edx
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x44], esi
mov edx, dword [esi]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
jmp 0x4e53ba
mov ecx, eax
mov esi, dword [esp + 8]
mov eax, esi
shr eax, 3
sub ecx, eax
and esi, 7
mov dword [esp + 8], esi
mov dword [esp + 0x44], ecx
mov eax, dword [ecx]
mov dword [esp + 0x30], eax
xor eax, eax
jmp 0x4e53be
xor eax, eax
cmp dword [esp + 8], 0x20
sete al
inc eax
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp]
add ecx, dword [esp + 0x24]
mov dword [esp], ecx
cmp ecx, 0x20
mov ecx, dword [esp + 0x84]
jbe 0x4e53db
mov ebx, 3
jmp 0x4e5446
cmp edx, dword [esp + 0xbc]
jae 0x4e5418
mov edi, edx
sub edi, ebx
je 0x4e5438
mov esi, dword [esp]
shr esi, 3
mov ebp, edx
sub ebp, esi
xor ebx, ebx
cmp ebp, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
setb bl
cmovb esi, edi
sub edx, esi
shl esi, 3
sub dword [esp], esi
mov dword [esp + 0x28], edx
mov esi, dword [edx]
mov dword [esp + 0x2c], esi
jmp 0x4e5442
mov esi, edx
mov edi, dword [esp]
mov edx, edi
shr edx, 3
sub esi, edx
and edi, 7
mov dword [esp], edi
mov dword [esp + 0x28], esi
mov edx, dword [esi]
mov dword [esp + 0x2c], edx
xor ebx, ebx
jmp 0x4e5442
xor ebx, ebx
cmp dword [esp], 0x20
sete bl
inc ebx
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add edx, edi
mov dword [esp + 0x14], edx
cmp edx, 0x20
mov esi, dword [esp + 0xa8]
jbe 0x4e5463
mov edx, 3
jmp 0x4e54da
cmp ecx, dword [esp + 0xb8]
mov edx, 3
jae 0x4e54b9
mov edi, ecx
sub edi, esi
je 0x4e54da
mov edx, dword [esp + 0x14]
mov esi, edx
shr esi, 3
mov ebp, ecx
sub ebp, esi
cmp ebp, dword [esp + 0xa8]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov ebx, 0
setb bl
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x20]
cmovb esi, edi
lea edi, [esi*8]
sub edx, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x24]
jmp 0x4e54cb
mov edi, dword [esp + 0x14]
mov esi, edi
shr esi, 3
and edi, 7
mov dword [esp + 0x14], edi
xor edx, edx
sub ecx, esi
mov dword [esp + 0x84], ecx
mov esi, dword [ecx]
mov dword [esp + 0x20], esi
or eax, dword [esp + 4]
or eax, ebx
or eax, edx
jne 0x4e5502
mov eax, dword [esp + 0x38]
lea ecx, [eax + ebp]
add ecx, 2
add eax, 2
mov dword [esp + 4], eax
cmp ecx, dword [esp + 0xcc]
jb 0x4e510e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x38]
add ecx, 2
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x3c]
lea ebx, [ecx + eax]
lea edi, [ecx + eax*2]
add ebp, ecx
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0xac]
mov edx, dword [esp + 0x80]
jmp 0x4e5596
mov eax, 0xffffffff
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x80]
mov ebx, edx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], eax
cmp ecx, edx
ja 0x4e4d92
cmp ebx, dword [esp + 0x40]
ja 0x4e4d92
mov eax, 0xffffffec
cmp edi, ebp
ja 0x4e5576
mov dword [esp + 4], edi
movzx edi, byte [esp + 0x88]
mov esi, ebp
mov eax, edx
lea edx, [esp + 0x70]
push edi
mov ebp, dword [esp + 0x94]
push ebp
push eax
call fcn.004ea610
add esp, 0xc
lea edx, [esp + 0x60]
mov ecx, ebx
push edi
push ebp
push dword [esp + 0x48]
call fcn.004ea610
add esp, 0xc
lea edx, [esp + 0x50]
mov ecx, dword [esp + 4]
push edi
push ebp
push esi
call fcn.004ea610
add esp, 0xc
lea edx, [esp + 0x98]
mov ecx, dword [esp + 0x10]
push edi
push ebp
push dword [esp + 0xb8]
call fcn.004ea610
add esp, 0xc
mov ecx, dword [esp + 0x78]
xor ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
xor eax, 0x20
or eax, ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
xor edx, dword [esp + 0x6c]
xor ecx, 0x20
or ecx, edx
mov edx, dword [esp + 0x58]
xor edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
xor edi, 0x20
or edi, edx
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
xor ebx, dword [esp + 0xa4]
xor edx, 0x20
or edx, ebx
or edx, edi
or edx, ecx
or edx, eax
mov eax, 0xffffffec
mov ecx, dword [esp + 0x4c]
cmovne ecx, eax
mov eax, ecx
jmp 0x4e5576