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

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x928]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x1c]
lea edi, [eax + ecx*4]
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi]
mov dword [esp + 0x34], edi
lea eax, [eax + ecx*4]
movzx ecx, byte [edi + 0xa]
xor edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ecx
mov dword [esi + 0xb8], 0
test ecx, ecx
je 0x4c6d4c
nop word [eax + eax]
mov eax, dword [eax + edi*4]
mov edx, eax
mov dword [esp + 0x1c], eax
movzx ebx, ax
mov eax, dword [ebp + 0x10]
shr edx, 0x18
mov dword [esp + 0x3c], edx
lea eax, [eax + ebx*8]
mov dword [esp + 0x24], eax
mov eax, ebx
and eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, 1
mov ecx, dword [esp + 0x28]
shl eax, cl
test dword [esp + 0x10], eax
je 0x4c65df
xor ecx, ecx
test edi, edi
je 0x4c65df
nop dword [eax]
mov eax, dword [esp + 0x40]
mov edx, dword [eax + ecx*4]
movzx eax, dx
cmp eax, ebx
je 0x4c65c5
inc ecx
cmp ecx, edi
jb 0x4c65b0
jmp 0x4c65db
shr edx, 0x18
mov ecx, dword [esi + edx*4 + 0x210]
and ecx, 0xffecffff
jne 0x4c667d
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
bts ecx, eax
mov dword [esp + 0x10], ecx
cmp ebx, 0x8000
jae 0x4c660d
push dword [esp + 0x24]
push esi
call fcn.004c73d0
add esp, 8
jmp 0x4c667b
mov ecx, dword [esp + 0x24]
movzx eax, word [ecx + 6]
and eax, 0xffffff80
cmp eax, 0x80
jne 0x4c662b
mov dword [esp + 0x20], 1
mov ecx, edx
jmp 0x4c6681
cmp byte [ecx + 5], 0x47
mov ebx, 0x21
mov al, byte [ecx + 4]
jne 0x4c6643
movzx ebx, word [ecx + 2]
and ebx, 0x10
or ebx, 0x21
and al, 0x1f
mov word [esi + 0x78], dx
mov edx, dword [esp + 0x1c]
mov ecx, 0x4700
movzx eax, al
or ax, cx
mov word [esi + 0x7c], ax
mov eax, ebx
or eax, 0x40
and edx, 0x100000
movzx ecx, ax
movzx eax, bx
cmove ecx, eax
mov word [esi + 0x7a], cx
mov ecx, esi
call fcn.004e0060
mov ecx, eax
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov eax, ebx
and eax, 0x130000
or eax, ecx
mov dword [esi + edx*4 + 0x210], eax
test ebx, 0x30000
je 0x4c66a8
test edx, edx
je 0x4c66a8
mov eax, 1
jmp 0x4c66aa
xor eax, eax
add dword [esi + 0xb8], eax
test ebx, 0x10000
je 0x4c66be
lea eax, [edx + 1]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x40]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x4c6570
cmp dword [esp + 0x20], 0
je 0x4c6d4c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], 0
movzx ecx, word [eax + 4]
mov eax, dword [ebp + 0x10]
lea eax, [eax + ecx*8]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
nop dword [eax]
mov edi, dword [edx + ecx*4]
mov eax, dword [ebp + 0x10]
movzx ecx, di
cmp byte [eax + ecx*8 + 6], 0xfd
lea ebx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
jne 0x4c689f
shr edi, 0x18
cmp dword [esi + edi*4 + 0x210], edi
jne 0x4c68da
movzx eax, byte [ebx + 5]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], 1
mov al, byte [eax + 0x5926a0]
mov byte [esp + 0x3c], al
test al, 3
jne 0x4c6765
movzx eax, word [ebx]
push eax
push edi
push dword [esp + 0x1c]
push edx
push ebp
push esi
call fcn.004c72a0
mov al, byte [esp + 0x54]
add esp, 0x18
mov edx, dword [esp + 0x40]
test al, 0xc
jne 0x4c677e
movzx eax, word [ebx + 2]
push eax
push edi
push dword [esp + 0x1c]
push edx
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
cmp byte [ebx + 5], 0x54
jne 0x4c67b9
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [ebp + 8]
jae 0x4c68d6
cmp byte [ebx + 0xd], 0x10
jne 0x4c68d6
movzx eax, word [ebx + 0xa]
push eax
push edi
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
jmp 0x4c68d6
mov edx, dword [esp + 0x18]
lea edi, [ebx + 8]
cmp edi, edx
jae 0x4c68d6
nop dword [eax + eax]
cmp byte [edi + 6], 0xfe
jne 0x4c6892
mov al, byte [edi + 7]
cmp al, 0xff
je 0x4c67ed
movzx eax, al
xor ecx, ecx
lea eax, [ebx + eax*8]
cmp eax, edi
jmp 0x4c682f
mov al, byte [edi + 5]
cmp al, 0x4a
je 0x4c6804
cmp al, 0x4b
je 0x4c6804
cmp al, 0x4d
je 0x4c6804
cmp al, 0x4e
je 0x4c6804
xor ecx, ecx
jmp 0x4c6832
mov ecx, dword [ebp + 0x10]
movzx eax, word [edi]
mov dl, byte [ecx + eax*8 + 5]
lea eax, [ecx + eax*8]
cmp dl, 0x38
je 0x4c681b
cmp dl, 0x39
jne 0x4c6821
movzx eax, word [eax]
lea eax, [ecx + eax*8]
movzx eax, word [eax]
mov edx, dword [esp + 0x18]
lea eax, [ecx + eax*8]
xor ecx, ecx
cmp eax, ebx
sete cl
test ecx, ecx
je 0x4c6892
movzx eax, word [edi + 2]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
test eax, eax
jne 0x4c6862
movzx ecx, word [edi + 2]
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + ecx*8]
jmp 0x4c6877
mov edx, dword [esp + 0x18]
lea eax, [edi + 8]
cmp eax, edx
jae 0x4c6892
cmp byte [edi + 0xd], 0x10
jne 0x4c6892
movzx eax, word [edi + 0xa]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
mov edx, dword [esp + 0x30]
add esp, 0x18
add edi, 8
cmp edi, edx
jb 0x4c67d0
jmp 0x4c68d6
cmp ecx, 0x8000
jb 0x4c68da
movzx eax, word [ebx + 6]
and eax, 0xffffff80
cmp eax, 0x80
jne 0x4c68da
movzx eax, word [ebx]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edx
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
shr edi, 0x18
mov dword [esi + edi*4 + 0x210], eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, eax
jb 0x4c6700
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x20], ecx
je 0x4c6d4c
nop
cmp ecx, eax
jae 0x4c6d4c
mov ecx, dword [edx + ecx*4]
mov eax, dword [ebp + 0x10]
movzx ebx, cx
cmp byte [eax + ebx*8 + 6], 0xfd
lea edi, [eax + ebx*8]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
jne 0x4c6d3a
shr ecx, 0x18
mov eax, dword [esi + ecx*4 + 0x210]
lea ebx, [esi + ecx*4]
cmp eax, ecx
je 0x4c6954
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + eax*4 + 0x210]
inc ecx
mov dword [ebx + 0x210], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
jmp 0x4c6900
movzx eax, byte [edi + 5]
movzx ecx, word [edi]
mov dword [esp + 0x1c], ecx
mov al, byte [eax + 0x5926a0]
mov byte [esp + 0x3c], al
test al, 3
jne 0x4c698d
push ecx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edx
push ebp
push esi
call fcn.004c72a0
mov edx, dword [esp + 0x58]
add esp, 0x18
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x3c]
movzx edi, word [edi + 2]
test al, 0xc
jne 0x4c69ab
push edi
push dword [esp + 0x14]
push dword [esp + 0x1c]
push edx
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x24]
cmp byte [eax + 5], 0x54
jne 0x4c6a4b
mov ecx, dword [esp + 0x2c]
inc ecx
cmp ecx, dword [ebp + 8]
jae 0x4c6a0c
cmp byte [eax + 0xd], 0x10
jne 0x4c6a0c
mov byte [esi + 0x134], 1
movzx eax, word [eax + 0xa]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
mov ecx, 0x1015
movzx eax, ax
add esp, 0x18
mov word [esi + 0x7c], cx
mov ecx, esi
mov word [esi + 0x78], di
mov word [esi + 0x7a], ax
call fcn.004e0060
mov edi, eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
mov ecx, 0xff9f
and ax, cx
mov word [esi + 0x7a], di
mov word [esi + 0x7c], ax
mov ecx, esi
mov eax, dword [esp + 0x1c]
mov word [esi + 0x78], ax
call fcn.004e3930
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
inc ecx
mov dword [ebx + 0x210], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
jmp 0x4c6900
mov ax, word [eax + 4]
mov ecx, esi
mov word [esi + 0x7c], ax
mov eax, dword [esp + 0x1c]
mov word [esi + 0x78], ax
mov word [esi + 0x7a], di
call fcn.004e3930
mov edi, dword [esp + 0x24]
mov dword [ebx + 0x210], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
lea ebx, [edi + 8]
cmp ebx, eax
jae 0x4c6d36
cmp byte [ebx + 6], 0xfe
jne 0x4c6d07
mov al, byte [ebx + 7]
cmp al, 0xff
je 0x4c6aa0
movzx eax, al
xor ecx, ecx
lea eax, [edi + eax*8]
cmp eax, ebx
jmp 0x4c6ade
mov al, byte [ebx + 5]
cmp al, 0x4a
je 0x4c6ab7
cmp al, 0x4b
je 0x4c6ab7
cmp al, 0x4d
je 0x4c6ab7
cmp al, 0x4e
je 0x4c6ab7
xor ecx, ecx
jmp 0x4c6ae1
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebx]
mov dl, byte [ecx + eax*8 + 5]
lea eax, [ecx + eax*8]
cmp dl, 0x38
je 0x4c6ace
cmp dl, 0x39
jne 0x4c6ad4
movzx eax, word [eax]
lea eax, [ecx + eax*8]
movzx eax, word [eax]
lea eax, [ecx + eax*8]
xor ecx, ecx
cmp eax, edi
sete cl
test ecx, ecx
je 0x4c6d03
movzx eax, word [ebx]
mov edx, dword [ebp + 0x10]
lea edi, [edx + eax*8]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
movzx edi, word [edi + 2]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 5]
mov byte [esp + 0x3c], cl
cmp cl, 0x3e
je 0x4c6bb7
cmp byte [esp + 0x3c], 0x39
lea ecx, [edx + edi*8]
jne 0x4c6b41
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
lea eax, [edx + eax*8]
push eax
push esi
call fcn.004c73d0
add esp, 8
push eax
push esi
call fcn.004e0820
add esp, 0xc
jmp 0x4c6b4b
push ecx
push esi
call fcn.004c73d0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 5]
cmp al, 0x39
je 0x4c6b84
cmp al, 0x38
je 0x4c6b84
cmp al, 0x3b
jne 0x4c6bb3
mov eax, dword [esp + 0x28]
movzx ecx, word [esi + 0x1bc]
movzx eax, ax
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jbe 0x4c6bb3
mov eax, dword [esi + 0x10]
cmp word [eax + ecx*8 + 2], di
jne 0x4c6bb3
mov edi, ecx
jmp 0x4c6bd8
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax]
mov eax, dword [ebp + 0x10]
movzx edx, word [eax + ecx*8 + 2]
mov ax, word [eax + ecx*8 + 4]
mov ecx, esi
mov word [esi + 0x7c], ax
mov eax, dword [esp + 0x28]
mov word [esi + 0x78], ax
mov word [esi + 0x7a], dx
call fcn.004e3930
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov cx, word [eax + 4]
mov eax, dword [esp + 0x2c]
mov word [esi + 0x7c], cx
mov ecx, esi
mov word [esi + 0x78], ax
mov word [esi + 0x7a], di
call fcn.004e3930
mov edi, eax
mov dword [esp + 0x3c], edi
movzx ecx, word [ebx + 2]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x4c6c53
movzx ecx, word [ebx + 2]
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + ecx*8]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
add esp, 0x18
mov dword [esi + 0x7a], 0x5b0e01d3
mov ecx, esi
mov word [esi + 0x78], ax
call fcn.004e3930
mov ecx, eax
mov ax, word [ebx + 4]
mov word [esi + 0x7a], cx
mov ecx, esi
mov word [esi + 0x7c], ax
mov word [esi + 0x78], di
call fcn.004e3930
mov edi, dword [esp + 0x24]
jmp 0x4c6d27
lea eax, [ebx + 8]
cmp eax, dword [esp + 0x18]
jae 0x4c6c33
cmp byte [ebx + 0xd], 0x10
jne 0x4c6c33
mov byte [esi + 0x134], 1
mov edx, 0x8000
movzx ecx, word [ebx + 2]
cmp cx, dx
jae 0x4c6c9e
movzx eax, word [ebx + 0xa]
cmp ax, dx
jae 0x4c6c9e
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + eax*8]
cdq
xor edx, edx
add edx, dword [edi + ecx*8]
adc eax, 0
push eax
push edx
push 0x1d
push esi
call fcn.004e04d0
add esp, 0x10
jmp 0x4c6cd8
movzx eax, word [ebx + 0xa]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.004c72a0
mov ecx, 0x1015
movzx eax, ax
mov word [esi + 0x7c], cx
add esp, 0x18
mov ecx, dword [esp + 0x2c]
mov word [esi + 0x78], cx
mov ecx, esi
mov word [esi + 0x7a], ax
call fcn.004e0060
mov ecx, eax
movzx eax, byte [ebx + 5]
shl ax, 8
or ax, 0x15
mov word [esi + 0x7a], cx
mov word [esi + 0x7c], ax
mov ecx, esi
mov eax, dword [esp + 0x3c]
mov word [esi + 0x78], ax
call fcn.004e3930
mov edi, dword [esp + 0x24]
jmp 0x4c6d27
mov eax, dword [esp + 0x18]
cmp byte [ebx + 5], 0x5a
jne 0x4c6d2b
cmp byte [edi + 5], 0x53
jne 0x4c6d2b
xor eax, eax
mov dword [esi + 0x7a], 0x5a000000
mov ecx, esi
mov word [esi + 0x78], ax
call fcn.004e3930
mov eax, dword [esp + 0x18]
add ebx, 8
cmp ebx, eax
jb 0x4c6a83
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x30], ecx
jmp 0x4c6900
mov ecx, dword [esi + 0x70]
lea eax, [esi + 0x210]
mov ebx, dword [esi + 0x18]
lea eax, [eax + ecx*4]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 8]
sub eax, ecx
mov dword [esi + 0x6c], eax
movzx eax, word [esi + 6]
mov edi, eax
mov ebp, eax
test edi, edi
je 0x4c6d87
mov eax, dword [esi + 0x1c]
lea ecx, [edi + edi*2]
movzx eax, word [eax + ecx*4 - 8]
cmp eax, dword [esi + 8]
je 0x4c6d93
cmp byte [esi + 0x74], 0
je 0x4c6dac
cmp byte [esi + 0x76], 0
jl 0x4c6dac
cmp edi, 1
jne 0x4c6dc9
xor eax, eax
mov dword [esi + 0x7a], 0xc000000
mov ecx, esi
mov word [esi + 0x78], ax
call fcn.004e0060
lea eax, [edi + 1]
cmp eax, dword [esi + 0x120]
lea edx, [esi + 0x120]
jbe 0x4c6df3
mov ecx, dword [esi + 0x61c]
cmp eax, ecx
ja 0x4c6e3f
jmp 0x4c6dd5
mov ecx, dword [esi + 0x1c]
dec edi
lea eax, [edi + edi*2]
mov ebx, dword [ecx + eax*4]
jmp 0x4c6dfd
push 0xc
push ecx
push edx
push dword [esi + 0x124]
push dword [esi + 0x54]
call fcn.0049ecf0
add esp, 0x14
mov dword [esi + 0x124], eax
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp + 1]
mov word [esi + 6], ax
lea eax, [edi + edi*2]
mov byte [esi + 0x74], 0
push ebx
lea eax, [ecx + eax*4]
mov byte [esi + 0x76], 0
push eax
push esi
call fcn.004c7fe0
add esp, 0xc
cmp dword [esp + 0x20], 0
pop edi
je 0x4c6e38
xor eax, eax
mov dword [esi + 0x7a], 0xf800000
mov word [esi + 0x78], ax
mov ecx, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
jmp fcn.004e0060
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 4
push esi
call fcn.004a52b0
int3