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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x4fc040]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x94], ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x9c], ecx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x44], eax
movlpd qword [esp + 0x58], xmm0
cmp word [ebp + 0x10], cx
je 0x4c6bb4
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x4c756a
movzx eax, word [edx]
mov dword [esp + 0x90], eax
cmp eax, 0x3f
ja 0x4c756a
movzx esi, ax
xor edx, edx
xor ebx, ebx
movlpd qword [esp + 0x88], xmm0
mov eax, esi
movlpd qword [esp + 0x48], xmm0
bts edx, eax
mov byte [esp + 0x24], 1
cmp eax, 0x20
mov dword [esp + 0x34], esi
cmovae ebx, edx
xor edx, ebx
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x5c]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x58]
neg eax
mov dword [esp + 0x20], edx
sbb eax, eax
mov dword [esp + 0x18], ebx
neg eax
add eax, 0x182
xor edi, edi
movzx eax, ax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], edi
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
cmp edx, eax
ja 0x4c74d6
jb 0x4c6c7e
cmp ebx, dword [esp + 0x84]
jae 0x4c74dd
movzx eax, word [ebp + 0x10]
cmp edi, eax
jg 0x4c74ff
test edi, edi
jle 0x4c6ca8
mov esi, dword [esp + 0x64]
or esi, dword [ecx + 8]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x6c]
or esi, dword [ecx + 0xc]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x34]
cmp edi, eax
jge 0x4c6cce
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
test eax, 0x800
je 0x4c6cdc
mov ecx, edi
jmp 0x4c749c
mov edi, dword [esp + 0xa0]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
test dword [edi + 0x2c], 0x400
jne 0x4c74c0
and eax, 0x80
mov dword [esp + 0x88], eax
je 0x4c6cfd
xor eax, eax
mov word [edi + 0x1e], ax
movzx eax, byte [edi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x4c6e26
mov eax, dword [esp + 0x40]
add eax, 8
mov dword [esp + 0x10], eax
mov esi, eax
nop
mov eax, ecx
xor edx, edx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x48], ecx
cmovae edx, ecx
and ecx, ebx
mov eax, edx
mov dword [esp + 0x30], edx
and eax, dword [esp + 0x20]
or ecx, eax
jne 0x4c6e08
mov esi, dword [esi]
test esi, esi
je 0x4c6e04
nop dword [eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x4c6d92
test eax, 0x80000
je 0x4c6d89
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x4c6d8c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4c6d70
jmp 0x4c6e04
mov al, byte [esi]
cmp al, 0xa7
je 0x4c6d9c
cmp al, 0xa9
jne 0x4c6e04
mov edx, dword [esp + 0x68]
cmp dword [esi + 0x1c], edx
jne 0x4c6e04
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x64]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x74]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea ecx, [ecx + 0x50]
call fcn.004c15c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4c6e04
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4c6e5d
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4c6e59
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x4c6e59
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4c6df4
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esi, 0x14
inc ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x34]
jl 0x4c6d30
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x2c]
test eax, 0x1000
jne 0x4c7357
test eax, 0x100
je 0x4c6f25
mov dword [esp + 0x54], 0
mov ecx, 1
mov dword [esp + 0x48], 0
jmp 0x4c6f61
cmp ecx, edx
jge 0x4c6e00
test bl, 0x82
je 0x4c6eef
cmp word [esi + 0x20], 0
jl 0x4c6eef
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00466fa0
mov ebx, eax
test ebx, ebx
jne 0x4c6e8f
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x400
je 0x4c6ea2
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4c6ea8
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x4c6ecb
test edi, edi
je 0x4c6ebe
test dword [edi + 4], 0x200
jne 0x4c6ec9
mov ecx, esi
call fcn.00466fa0
test eax, eax
jne 0x4c6eda
mov edx, edi
mov ecx, esi
call fcn.00466fa0
test eax, eax
je 0x4c6e00
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
movzx eax, byte [edx]
movzx esi, byte [edi + edx]
cmp eax, esi
jne 0x4c6f0c
test eax, eax
jne 0x4c6f22
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
or ebx, dword [esp + 0x48]
or edx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
jmp 0x4c6e04
movzx ecx, byte [eax + 0x4f2180]
movzx eax, byte [esi + 0x4f2180]
sub ecx, eax
jne 0x4c6e00
inc edx
jmp 0x4c6ee0
mov edx, dword [edi + 0x20]
mov dword [esp + 0x54], edx
test edx, edx
je 0x4c756a
test byte [edx + 0x38], 4
jne 0x4c756a
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x48], ecx
movzx ecx, word [edx + 0x34]
je 0x4c6f5c
mov byte [esp + 0x24], 1
test eax, 0x8000
je 0x4c6f61
mov byte [esp + 0x24], 0
xor al, al
xor dl, dl
mov byte [esp + 0x1f], al
mov dword [esp + 0x2c], eax
movzx eax, cx
mov byte [esp + 0x1e], dl
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x58], eax
test eax, eax
je 0x4c7357
mov dword [esp + 0x30], edx
nop word [eax + eax]
movzx ebx, word [edi + 0x18]
mov byte [esp + 0x17], 1
cmp edx, ebx
jge 0x4c700a
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x4c700a
mov edi, dword [edi + 0x38]
mov eax, dword [esp + 0x80]
mov esi, dword [edi + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4c6fdb
mov eax, dword [esp + 0x24]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x24], cl
jmp 0x4c733a
test cl, 1
je 0x4c700a
mov esi, dword [esi]
inc edx
cmp edx, ebx
jge 0x4c7006
mov ecx, dword [esp + 0x10]
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4c7000
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4c6ff0
jmp 0x4c7006
xor al, al
mov byte [esp + 0x17], al
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4c7036
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x3c], ecx
mov al, byte [edx + eax]
and al, 1
mov byte [esp + 0x1d], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x20]
cmp ecx, eax
jne 0x4c7042
jmp 0x4c703b
mov byte [esp + 0x1d], 0
or ecx, 0xffffffff
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x24]
test al, al
je 0x4c7077
test ecx, ecx
js 0x4c7068
cmp edx, ebx
jl 0x4c7077
mov eax, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4c7077
mov byte [esp + 0x24], 0
jmp 0x4c7077
xor edx, edx
movzx eax, al
cmp ecx, 0xfffffffe
cmove eax, edx
mov dword [esp + 0x24], eax
mov bl, byte [esp + 0x17]
xor edi, edi
test bl, bl
je 0x4c7209
mov esi, dword [esp + 0x40]
add esi, 8
mov dword [esp + 0x38], esi
cmp edi, dword [esp + 0x34]
jge 0x4c7209
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x18]
and ecx, dword [esp + 0x20]
or edx, ecx
jne 0x4c71f9
mov edx, dword [esi]
test edx, edx
je 0x4c71f9
nop dword [eax + eax]
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x4c70f5
test eax, 0x80000
je 0x4c70e9
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4c70ec
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4c70d0
jmp 0x4c71f9
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp ecx, 0xffffffff
jl 0x4c7136
mov al, byte [edx]
cmp al, 0xa7
je 0x4c7119
cmp al, 0xa9
jne 0x4c71f9
mov eax, dword [esp + 0x68]
mov bl, bh
cmp dword [edx + 0x1c], eax
jne 0x4c71f9
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x4c71f9
jmp 0x4c71a7
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ecx + 8]
test ecx, ecx
je 0x4c7170
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x4c7170
test eax, 0x80000
je 0x4c7169
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 8]
jmp 0x4c716c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4c7150
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x4c7190
test eax, 0x80000
je 0x4c7189
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4c718c
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4c7170
push dword [esp + 0x68]
push ecx
xor ecx, ecx
call fcn.00471040
add esp, 8
test eax, eax
jne 0x4c71f9
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xffffffff
je 0x4c724b
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00466fa0
test eax, eax
jne 0x4c71cc
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4c7236
test ecx, ecx
jne 0x4c7248
mov bl, bh
test ecx, ecx
je 0x4c724b
mov esi, dword [esp + 0x38]
add esi, 0x14
inc edi
mov dword [esp + 0x38], esi
test bl, bl
jne 0x4c7090
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c721c
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4c7221
mov byte [esp + 0x24], 0
cmp byte [esp + 0x2c], 0
je 0x4c7357
mov byte [esp + 0x24], 1
jmp 0x4c7362
movzx eax, byte [eax + 0x4f2180]
movzx ecx, byte [ecx + 0x4f2180]
sub ecx, eax
jne 0x4c71ef
inc edx
jmp 0x4c71e0
cmp word [esp + 0x88], 0
mov esi, dword [esp + 0x28]
je 0x4c7263
mov eax, dword [esp + 0x10]
inc eax
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0x17], 1
jne 0x4c72e0
mov edx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov bh, byte [esp + 0x1f]
mov dl, byte [edx + eax*4 + 0x10]
and dl, 1
test bh, bh
je 0x4c72ac
mov dh, byte [esp + 0x1e]
xor ecx, ecx
mov bl, byte [esp + 0x1d]
movzx eax, byte [esp + 0x17]
xor bl, dh
cmp bl, dl
mov byte [esp + 0x1e], dh
mov byte [esp + 0x1f], bh
cmove ecx, eax
test cl, cl
je 0x4c7209
jmp 0x4c72e0
xor dl, byte [esp + 0x1d]
mov byte [esp + 0x1e], dl
je 0x4c72db
mov eax, dword [esp + 0x78]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0xa4]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov edx, dword [esp + 0x10]
test byte [ecx + eax*4 + 0x10], 2
je 0x4c7305
movzx eax, word [esi + 0x18]
cmp edx, eax
jne 0x4c7209
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x3c], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x2c], eax
xor eax, eax
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x18], eax
or dword [esp + 0x20], ecx
add dword [esp + 0x30], 0x14
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x58]
jge 0x4c7221
mov edi, dword [esp + 0x28]
jmp 0x4c6f90
cmp byte [esp + 0x24], 0
je 0x4c74b2
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
or eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x38], eax
test esi, esi
je 0x4c7498
mov ebx, dword [esp + 0x40]
add ebx, 8
mov dword [esp + 0x2c], ebx
nop dword [eax]
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov ecx, esi
cmovae edi, esi
and ecx, dword [esp + 0x18]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4c7476
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c73e2
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1f0]
call fcn.004c0d30
mov ecx, edx
jmp 0x4c73f3
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x4c744a
mov dword [esp + 0xac], fcn.00469c30
mov eax, 1
mov word [esp + 0xbc], ax
mov dword [esp + 0xb0], 0x469ad0
mov dword [esp + 0xc0], 0
test ebx, ebx
je 0x4c744a
mov edx, ebx
lea ecx, [esp + 0xa8]
call fcn.00463850
cmp word [esp + 0xbc], 0
je 0x4c7472
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
not ecx
and ecx, dword [esp + 0x48]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
mov edx, dword [esp + 0x20]
jne 0x4c7476
or dword [esp + 0x18], esi
or edx, edi
mov dword [esp + 0x20], edx
jmp 0x4c7476
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
add dword [esp + 0x2c], 0x14
inc eax
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp eax, esi
jl 0x4c73a0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x78]
inc edi
cmp byte [esp + 0x24], 0
mov dword [esp + 0x78], edi
jne 0x4c6c63
jmp 0x4c74d2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x34]
jmp 0x4c7498
cmp byte [edi + 0x20], 0
je 0x4c74ff
and eax, 0x280
cmp eax, 0x80
jne 0x4c74e3
mov eax, dword [esp + 0x7c]
cmp ebx, dword [esp + 0x84]
jne 0x4c74ff
cmp edx, eax
jne 0x4c74ff
mov al, byte [esp + 0x90]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004e3214
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x24], 0
jne 0x4c7598
lea ebx, [esi - 1]
test ebx, ebx
jle 0x4c756a
mov edi, dword [esp + 0x20]
cmp ebx, 0x40
jge 0x4c7539
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
adc edx, 0xffffffff
jmp 0x4c7553
xorps xmm0, xmm0
movlpd qword [esp + 0x90], xmm0
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x18]
and esi, edi
cmp eax, ecx
jne 0x4c7565
cmp esi, edx
je 0x4c7581
dec ebx
test ebx, ebx
jg 0x4c7515
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004e3214
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004e3214
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc4]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3214
mov esp, ebp
pop ebp
ret