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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x10]
mov esi, dword [edi - 0xbc]
push esi
mov dword [esp + 0x1c], esi
call fcn.004a3880
mov edx, dword [esi]
add esp, 0xc
mov esi, dword [ebp + 0x10]
shl esi, 4
add esi, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], esi
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x4ecff3
nop dword [eax + eax]
movzx edi, cx
shl edi, 4
add edi, edx
mov dword [esp + 0xc], edi
mov ecx, dword [edi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x4ecfd0
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, edi
call fcn.004e0160
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, eax
shr edx, 0x1c
cmp edx, 2
je 0x4ed5d7
test eax, 0xfc000000
jne 0x4ed030
cmp ecx, 4
je 0x4ed5d7
cmp ecx, 8
je 0x4ed5d7
mov esi, eax
mov edx, 0x7fff
and esi, 0x100000
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], esi
je 0x4ed108
mov eax, dword [edi + 0x64]
mov edx, dword [eax + 4]
test edx, edx
je 0x4ed65c
cmp dword [eax + 8], 0
jne 0x4ed65c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
add ecx, 0x90
mov eax, dword [eax]
add eax, 8
push eax
push edx
push 0
push ecx
push edi
call fcn.004ef200
push 0
push dword [esp + 0x24]
mov esi, eax
push dword [esp + 0x2c]
call fcn.004a40d0
push 1
push dword [esp + 0x30]
mov edi, eax
push dword [esp + 0x38]
call fcn.004a40d0
mov ecx, dword [ebp + 8]
add esp, 0x2c
sub eax, edi
mov edx, eax
call fcn.004e0160
mov ecx, dword [ebp + 8]
mov edx, 0x3793
movzx eax, ax
mov word [ecx + 0x7c], dx
mov word [ecx + 0x78], si
mov word [ecx + 0x7a], ax
call fcn.004e3930
mov edx, edi
mov esi, eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004e0160
movzx ecx, ax
mov eax, 0x3593
mov word [edi + 0x7a], cx
mov ecx, edi
mov word [edi + 0x7c], ax
mov word [edi + 0x78], si
call fcn.004e3930
mov ecx, dword [edi + 0x64]
mov esi, dword [esp + 0x20]
mov dword [ecx + 4], 0
jmp 0x4ed11d
and eax, 0xf0000
cmp eax, 0x30000
jbe 0x4ed123
mov edx, ecx
mov ecx, edi
call fcn.004e0160
mov edx, eax
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x24]
mov eax, 0x538a
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7c], ax
mov word [edi + 0x7a], dx
call fcn.004e3930
cmp dword [esp + 0x14], 0x80
mov dword [esp + 0x1c], eax
ja 0x4ed51b
test esi, esi
jne 0x4ed51b
mov ecx, dword [edi + 0x64]
cmp dword [ecx + 4], esi
je 0x4ed188
cmp dword [ecx + 8], esi
jne 0x4ed188
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
add eax, 8
push eax
push esi
push dword [esp + 0x18]
call fcn.004d9100
add esp, 0xc
test eax, eax
je 0x4ed4a3
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 0x1c
cmp eax, 3
jne 0x4ed2c4
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
movzx esi, cx
shl esi, 4
add esi, edx
mov ecx, dword [esi]
mov eax, ecx
shr eax, 0x1c
cmp eax, 8
je 0x4ed1a2
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], edx
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], ecx
movlpd qword [esp + 0x30], xmm0
test eax, eax
je 0x4ed1e3
cmp eax, 2
jne 0x4ed51b
mov ecx, dword [esp + 0x14]
mov eax, edx
shl eax, 4
cmp eax, ecx
jb 0x4ed51b
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x4ed5a2
nop word [eax + eax]
lea edx, [eax + 8]
mov ecx, edi
call fcn.004e0160
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e3930
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x4ed262
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
lea ecx, [ecx + eax*8]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x4ed295
cmp eax, 2
je 0x4ed291
cmp dword [esi], 0x10000000
jae 0x4ed282
xor edx, edx
mov ecx, edi
call fcn.004e0160
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
jmp 0x4ed299
mov ecx, dword [esp + 0x20]
mov eax, 0x7fff
mov dword [esp + 0xc], eax
jmp 0x4ed299
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ecx
push eax
push dword [esp + 0x30]
push esi
push edi
call fcn.004ef200
mov eax, dword [esp + 0x38]
add esp, 0x14
add eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jb 0x4ed210
jmp 0x4ed5a2
cmp eax, 1
jne 0x4ed49f
mov eax, dword [edi + 0x64]
cmp dword [eax + 4], 0
jne 0x4ed351
movzx esi, word [edx + 8]
test esi, esi
je 0x4ed351
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
nop dword [eax + eax]
shl esi, 4
add eax, esi
mov dword [esp + 0x2c], eax
movzx esi, word [eax + 8]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x1c
cmp eax, 9
jne 0x4ed33a
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xc], 0
je 0x4ed343
mov edi, dword [esp + 0x24]
movzx eax, cx
add eax, eax
mov ecx, dword [edi + eax*8]
mov eax, ecx
shr eax, 0x1c
cmp eax, 8
je 0x4ed317
mov edi, dword [ebp + 8]
test eax, eax
je 0x4ed343
cmp eax, 2
je 0x4ed343
cmp eax, 5
jmp 0x4ed33d
cmp eax, 0xb
jne 0x4ed51b
mov eax, dword [esp + 0x24]
test esi, esi
jne 0x4ed2f0
movzx eax, word [edx + 8]
jmp 0x4ed35d
movzx eax, word [edx + 8]
test eax, eax
je 0x4ed5a2
mov dword [esp + 0x18], 8
mov dword [esp + 0x24], 4
nop dword [eax]
mov ecx, dword [esp + 0x10]
add eax, eax
mov edx, dword [ecx]
lea esi, [edx + eax*8]
movzx eax, word [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1c
mov dword [esp + 0x2c], esi
cmp ecx, 9
jne 0x4ed485
cmp dword [esi + 0xc], 0
lea ecx, [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x38], xmm0
je 0x4ed48e
movzx esi, ax
shl esi, 4
add esi, edx
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1c
cmp ecx, 8
je 0x4ed3b2
test ecx, ecx
je 0x4ed3d8
cmp ecx, 2
je 0x4ed3d8
cmp ecx, 5
jne 0x4ed65c
mov eax, dword [edi + 0x64]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4ed409
mov eax, dword [ebp + 0xc]
add edx, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov eax, dword [eax]
add eax, ecx
add ecx, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
jmp 0x4ed425
cmp ecx, 2
jne 0x4ed418
mov dword [esp + 0x20], 0x7fff
jmp 0x4ed425
xor edx, edx
mov ecx, edi
call fcn.004e0160
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [edx + 4]
add edx, 8
call fcn.004e0160
movzx ecx, ax
mov eax, 0x2905
mov word [edi + 0x7c], ax
mov eax, dword [esp + 0x1c]
mov word [edi + 0x7a], cx
mov ecx, edi
mov word [edi + 0x78], ax
call fcn.004e3930
push dword [esp + 0x28]
push dword [esp + 0x24]
push eax
push esi
push edi
call fcn.004ef200
mov edx, dword [esp + 0x20]
add esp, 0x14
test dword [edx], 0x800000
je 0x4ed48e
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
je 0x4ed5a2
jmp 0x4ed65c
cmp ecx, 0xb
jne 0x4ed65c
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4ed370
jmp 0x4ed5a2
mov esi, dword [esp + 0xc]
mov edx, 8
mov ecx, edi
call fcn.004e0160
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e3930
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 4]
test edx, edx
je 0x4ed4f3
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, 8
push ecx
push edx
push eax
push esi
push edi
call fcn.004ef200
jmp 0x4ed59f
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
xor edx, edx
movlpd qword [esp + 0x3c], xmm0
mov ecx, edi
call fcn.004e0160
push eax
push dword [esp + 0x38]
push esi
push edi
call fcn.004ef200
jmp 0x4ed59f
mov eax, dword [edi + 0x64]
cmp dword [eax + 4], 0
jne 0x4ed65c
mov edx, 8
mov ecx, edi
call fcn.004e0160
mov ecx, 0x2905
movzx eax, ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x1c]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e3930
cmp dword [esp + 0x18], 0x7fff
mov esi, eax
jne 0x4ed56e
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004e0160
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
mov eax, 3
shr ecx, 0x10
and ecx, 0xf
cmp ecx, eax
cmovb ecx, eax
mov eax, 1
shl eax, cl
xor edx, edx
push eax
mov ecx, edi
call fcn.004e0160
push eax
push dword [esp + 0x20]
push esi
push edi
call fcn.004ef720
add esp, 0x14
mov eax, dword [edi + 0x64]
mov esi, dword [esp + 0x1c]
push 2
push dword [ebp + 0x10]
mov dword [eax], esi
push dword [esp + 0x18]
call fcn.004a3c00
add esp, 0xc
test eax, eax
je 0x4ed656
push eax
push 0
push esi
push edi
call fcn.004ef8f0
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x64]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4ed600
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, 8
push eax
push dword [esp + 0x34]
push 0
push esi
push edi
call fcn.004ef200
add esp, 0x14
jmp 0x4ed635
cmp edx, 2
jne 0x4ed611
push 0
push 0x19
push edi
call fcn.004e0790
jmp 0x4ed632
cmp ecx, 4
jne 0x4ed621
xor edx, edx
mov ecx, edi
call fcn.004e0160
jmp 0x4ed635
push 0
push 0
push edi
mov byte [edi + 0x134], 1
call fcn.004e0600
add esp, 0xc
mov ecx, 0x548a
mov word [edi + 0x7a], ax
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x24]
mov word [edi + 0x78], cx
mov ecx, edi
call fcn.004e3930
mov ecx, dword [edi + 0x64]
mov dword [ecx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x16
push edi
call fcn.004a52b0
int3