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

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ebp, 0x8000
mov edx, dword [edi + 0x28]
nop word [eax + eax]
and edx, 0x1f000000
cmp edx, 0xb000000
je 0x4cddbe
xor eax, eax
cmp dword [edi + 0x30], eax
setne al
push eax
push edi
push ebx
call fcn.004cfbb0
add esp, 0xc
test eax, eax
je 0x4ce43d
jmp 0x4ce02c
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x4cddda
cmp eax, 0xfffffff2
jae 0x4cde11
movsd xmm0, qword [edi + 8]
ucomisd xmm0, xmm0
lahf
test ah, 0x44
jnp 0x4cde11
cmp dword [edi + 0x30], 0
jne 0x4ce435
cmp word [edi + 0x2c], bp
jae 0x4cde11
cmp dword [edi + 0x3c], 0
je 0x4cde04
push 0
push edi
push ebx
call fcn.004cfbb0
add esp, 0xc
test eax, eax
jne 0x4ce02c
pop edi
pop esi
pop ebp
mov eax, 0x7fff
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x20]
push eax
push edi
push ebx
call fcn.004d1ba0
mov ebp, dword [ebx + 0x10]
add esp, 0x10
movzx edx, ax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov al, byte [ebp + edx*8 + 5]
mov byte [esp + 0x30], al
cmp al, 0x1a
jne 0x4cde45
mov ebp, dword [ebp + edx*8]
jmp 0x4cde48
mov ebp, dword [edi + 0x24]
mov ecx, dword [edi + 0x30]
test ecx, ecx
jne 0x4cdf1f
mov esi, dword [ebp + 4]
cmp esi, 0xfffffff2
jae 0x4cde60
lea esi, [ecx + 0xe]
jmp 0x4cde62
not esi
lea eax, [ebx - 0x118]
cmp ebp, eax
jne 0x4cdea7
lea eax, [ebx - 0x118]
push eax
push 0x1a
push ebx
call fcn.004e5f60
mov edx, dword [esp + 0x20]
mov ecx, 0x885
mov word [ebx + 0x7c], cx
add esp, 0xc
movzx ecx, dx
movzx eax, ax
mov word [ebx + 0x78], cx
mov ecx, ebx
mov word [ebx + 0x7a], ax
call fcn.004e9100
mov ebp, 0x7fff
jmp 0x4cdeda
cmp byte [esp + 0x30], 0x38
mov ecx, 0x4280
mov eax, 0x4380
cmove eax, ecx
or ax, si
mov word [ebx + 0x7c], ax
mov eax, dword [esp + 0x14]
movzx ecx, ax
xor eax, eax
mov word [ebx + 0x78], cx
mov ecx, ebx
mov word [ebx + 0x7a], ax
call fcn.004e9100
mov ebp, eax
mov eax, dword [esp + 0x1c]
movzx ecx, bp
cmp ecx, eax
jae 0x4cdef6
push eax
push ebx
call fcn.004e6270
mov al, byte [esp + 0x1b]
add esp, 8
mov byte [ebx + 0x76], al
test esi, esi
jne 0x4ce0c2
cmp dword [edi + 0x3c], esi
je 0x4ce0c7
push esi
push edi
push ebx
call fcn.004cfbb0
add esp, 0xc
test eax, eax
je 0x4ce0c7
jmp 0x4ce027
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
movzx eax, byte [edi + 0x2f]
and eax, 0x1f
mov dword [esp + 0x24], esi
sub eax, 4
cmp eax, 8
ja 0x4cdf47
mov dword [esp + 0x18], 1
test ecx, 0x1f000000
jne 0x4cdf4f
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
cmp edx, eax
jae 0x4cdf6c
push eax
push ebx
call fcn.004e6270
mov al, byte [esp + 0x1b]
add esp, 8
mov edx, dword [esp + 0x20]
mov byte [ebx + 0x76], al
cmp dword [ebp + 4], 0xffffffff
jne 0x4ce237
cmp dword [edi + 0x3c], 0
je 0x4cdfbe
test esi, esi
je 0x4cdfbe
push dword [ebx - 0x94]
push esi
call fcn.004a6280
add esp, 8
test eax, eax
je 0x4cdfbe
cmp dword [eax + 4], 0xffffffff
je 0x4cdfbe
cmp byte [esp + 0x30], 0x38
mov ecx, 0x4280
mov eax, 0x4380
cmove eax, ecx
mov word [ebx + 0x7c], ax
mov eax, dword [esp + 0x14]
movzx ecx, ax
xor eax, eax
mov word [ebx + 0x7a], ax
jmp 0x4cdffe
cmp byte [esp + 0x30], 0x3a
jne 0x4ce009
lea eax, [ebx - 0x118]
push eax
push 0x1a
push ebx
call fcn.004e5f60
movzx edx, ax
add esp, 0xc
lea eax, [ebx - 0x118]
mov word [ebx + 0x7a], dx
cmp ebp, eax
mov ecx, 0x985
mov eax, 0x885
cmove ecx, eax
mov eax, dword [esp + 0x14]
mov word [ebx + 0x7c], cx
movzx ecx, ax
mov word [ebx + 0x78], cx
mov ecx, ebx
call fcn.004e9100
cmp dword [edi + 0x3c], 0
je 0x4ce186
push 1
push edi
push ebx
call fcn.004cfbb0
add esp, 0xc
test eax, eax
je 0x4ce186
mov ebp, 0x8000
mov ecx, dword [edi + 0x38]
and ecx, 0x1f000000
cmp ecx, 0x8000000
je 0x4ce0dd
cmp dword [edi + 0x34], 0x7fff
jne 0x4ce0a2
cmp dword [edi + 0x30], 0
jne 0x4ce0a2
mov eax, dword [edi + 0x28]
and eax, 0x1f000000
cmp eax, 0xc000000
jne 0x4ce0a2
mov eax, dword [edi]
cmp byte [eax + 6], 3
jne 0x4ce0a2
cmp ecx, 0xb000000
jne 0x4ce0a2
mov ecx, dword [edi + 0x2c]
mov eax, ecx
and eax, 0x1f000000
cmp eax, 0x4000000
jne 0x4ce0a2
cmp cx, bp
jae 0x4ce0a2
push dword [edi + 8]
push dword [edi + 0x18]
call fcn.004a6280
push eax
push ebx
call fcn.004cdcf0
add esp, 0x10
test eax, eax
jne 0x4ce168
add dword [edi + 0x3c], 0xffffffff
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x28], edx
mov dword [edi], eax
mov dword [edi + 4], ecx
je 0x4ce445
jmp 0x4cdd90
cmp esi, 2
ja 0x4ce0d3
imul ebp, esi, 0xffffff
add ebp, 0x7fff
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [edi + 0x30], 0
mov ecx, 0x402d97
mov eax, 0x402cbb
cmovne eax, ecx
push eax
push ebx
call fcn.004d2610
mov ecx, dword [ebx + 0x54]
mov edx, eax
mov ebp, dword [ebx + 0x64]
add esp, 8
mov esi, dword [ecx + 0x10]
mov ecx, dword [edi + 0x38]
mov dword [ebp + edx*4], ecx
mov eax, dword [edi + 0x28]
mov dword [ebp + edx*4 + 4], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp + edx*4 + 8], eax
mov eax, dword [edi + 0x18]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], 0xfffffff7
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + edx*8 + 8], eax
mov dword [esi + edx*8 + 0xc], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esi + edx*8 + 0x10], eax
mov dword [esi + edx*8 + 0x14], ecx
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4ce170
mov dword [ebp + edx*4 + 0xc], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
push 3
push edx
push ebx
mov dword [esi + edx*8 + 0x18], eax
mov dword [esi + edx*8 + 0x1c], ecx
call fcn.004cdca0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 2
push edx
push ebx
call fcn.004cdca0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [ebx - 0x118]
cmp ebp, eax
jne 0x4ce30f
mov esi, dword [edi + 0x2c]
mov eax, esi
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
ja 0x4ce1bd
mov ecx, ebx
mov dword [ebx + 0x7a], 0x5b0e01d3
mov word [ebx + 0x78], si
call fcn.004e9100
mov esi, eax
jmp 0x4ce210
mov eax, esi
and eax, 0x1f000000
cmp eax, 0xe000000
jne 0x4ce210
movzx eax, si
mov ecx, 0x8000
cmp ax, cx
jae 0x4ce1f8
cmp dword [edi + 8], 0
jne 0x4ce210
cmp dword [edi + 0xc], 0x80000000
jne 0x4ce210
push 0
push 0
push ebx
call fcn.004e5e70
add esp, 0xc
mov esi, eax
jmp 0x4ce210
mov ecx, 0x88e
mov word [ebx + 0x78], ax
mov word [ebx + 0x7c], cx
mov ecx, ebx
mov word [ebx + 0x7a], ax
call fcn.004e9100
movzx eax, word [edi + 0x28]
mov ecx, 0x3b05
mov word [ebx + 0x7c], cx
mov ecx, ebx
mov word [ebx + 0x78], ax
mov word [ebx + 0x7a], si
call fcn.004e9100
mov dword [esp + 0x14], eax
xor ebp, ebp
jmp 0x4ce313
xor eax, eax
cmp byte [esp + 0x30], 0x38
push edx
setne al
add eax, 0x42
movzx esi, ax
push esi
push ebx
call fcn.004eade0
add esp, 0xc
test eax, eax
jne 0x4ce230
cmp byte [esp + 0x30], 0x3a
jne 0x4ce291
lea eax, [ebx - 0x118]
push eax
push 0x1a
push ebx
call fcn.004e5f60
mov edx, dword [esp + 0x20]
mov ecx, 0x985
mov word [ebx + 0x7c], cx
add esp, 0xc
movzx ecx, dx
movzx eax, ax
mov word [ebx + 0x78], cx
mov ecx, ebx
mov word [ebx + 0x7a], ax
call fcn.004e9100
cmp dword [edi + 0x3c], 0
je 0x4ce30f
cmp dword [esp + 0x24], 0
jne 0x4ce2d7
movzx eax, word [edi + 0x28]
mov ecx, ebx
mov dword [ebx + 0x7a], 0x450b0005
mov word [ebx + 0x78], ax
call fcn.004e9100
push 0xb
push ebx
mov esi, eax
call fcn.004e5df0
movzx ecx, ax
add esp, 8
mov eax, 0x88b
mov word [ebx + 0x78], si
mov word [ebx + 0x7c], ax
mov word [ebx + 0x7a], cx
jmp 0x4ce308
mov eax, dword [ebp + 4]
cmp eax, 0xfffffff2
jae 0x4ce2e6
mov eax, 0xe
jmp 0x4ce2e8
not eax
mov ecx, dword [esp + 0x14]
shl esi, 8
or esi, eax
movzx eax, cx
or esi, 0x80
mov word [ebx + 0x78], ax
xor eax, eax
mov word [ebx + 0x7c], si
mov word [ebx + 0x7a], ax
mov ecx, ebx
call fcn.004e9100
mov ebp, dword [esp + 0x18]
mov ecx, dword [edi + 0x30]
movzx eax, cx
mov esi, eax
mov edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
ja 0x4ce347
mov ecx, ebx
mov dword [ebx + 0x7a], 0x5b0e01d3
mov word [ebx + 0x78], si
call fcn.004e9100
mov ecx, eax
mov dword [edi + 0x30], ecx
movzx edx, cx
shr ecx, 0x18
mov eax, 0x4b00
and ecx, 0x1f
mov word [ebx + 0x7a], dx
cmp byte [esp + 0x30], 0x38
mov esi, 0x4a00
cmove eax, esi
or cx, ax
mov eax, dword [esp + 0x14]
mov word [ebx + 0x7c], cx
mov ecx, ebx
mov word [ebx + 0x78], ax
call fcn.004e9100
test ebp, ebp
jne 0x4ce38c
movzx eax, byte [edi + 0x33]
and eax, 0x1f
sub eax, 4
cmp eax, 8
ja 0x4ce3a2
movzx eax, word [edi + 0x28]
mov ecx, ebx
mov dword [ebx + 0x7a], 0x58000000
mov word [ebx + 0x78], ax
call fcn.004e9100
mov ecx, dword [edi + 0x2c]
mov eax, ecx
and eax, 0x1f000000
cmp eax, 0x4000000
jne 0x4ce427
movzx eax, cx
mov ecx, 0x8000
cmp ax, cx
jae 0x4ce3eb
mov ecx, eax
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + ecx*8]
xor ecx, ecx
lea eax, [ebx - 0x98]
cmp dword [eax], edx
je 0x4ce3eb
inc ecx
add eax, 4
cmp ecx, 5
jbe 0x4ce3d0
pop edi
pop esi
pop ebp
mov byte [ebx + 0x75], 1
xor eax, eax
pop ebx
add esp, 0x18
ret
movzx eax, word [edi + 0x28]
mov ecx, ebx
mov dword [ebx + 0x7a], 0x3e05000a
mov word [ebx + 0x78], ax
call fcn.004e9100
xor edx, edx
mov ecx, ebx
mov esi, eax
call fcn.004e5930
movzx ecx, ax
mov eax, 0x4d10
mov word [ebx + 0x7a], cx
mov ecx, ebx
mov word [ebx + 0x7c], ax
mov word [ebx + 0x78], si
call fcn.004e9100
pop edi
pop esi
pop ebp
mov byte [ebx + 0x75], 1
xor eax, eax
pop ebx
add esp, 0x18
ret
push 0x11
push ebx
call fcn.004aaa80
push 0x12
push ebx
call fcn.004aaa80
push 0x13
push ebx
call fcn.004aaa80
int3