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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
xor esi, esi
mov dword [esp + 0x38], edx
mov eax, ecx
xorps xmm0, xmm0
push edi
mov dword [esp + 0x40], eax
movlpd qword [esp + 0x48], xmm0
cmp word [ebp + 0x10], si
je 0x4a76c8
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x4a7fec
movzx eax, word [edx]
mov dword [esp + 0x30], eax
cmp eax, 0x3f
ja 0x4a7fec
movzx eax, ax
xor ecx, ecx
bts ecx, eax
mov edi, dword [esp + 0x4c]
xor edx, edx
mov ebx, dword [esp + 0x48]
cmp eax, 0x20
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x50], xmm0
cmovae edx, ecx
mov byte [esp + 0x1c], 1
xor ecx, edx
mov dword [esp + 0x10], edi
cmp eax, 0x40
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0xc]
cmovae edx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1c]
adc edx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x78], edx
neg eax
sbb eax, eax
neg eax
add eax, 0x182
xor edx, edx
movzx eax, ax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x60], eax
nop dword [eax]
mov eax, dword [esp + 0x78]
cmp edi, eax
ja 0x4a7f67
jb 0x4a7788
cmp ebx, dword [esp + 0x7c]
jae 0x4a7f6b
movzx eax, word [ebp + 0x10]
cmp edx, eax
jg 0x4a7f8e
test edx, edx
jle 0x4a77b2
mov edi, dword [esp + 0x60]
or edi, dword [esi + 8]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x64]
or edi, dword [esi + 0xc]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x10]
cmp edx, eax
jge 0x4a77d3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
test eax, 0x800
jne 0x4a7f56
jmp 0x4a77dd
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], esi
mov edx, dword [esi + 0x2c]
test edx, 0x400
jne 0x4a7f7c
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4a7800
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
mov ebx, dword [esp + 0x30]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x68], eax
movzx eax, bx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4a7943
mov eax, dword [esp + 0x3c]
add eax, 8
mov dword [esp + 0xc], eax
mov esi, eax
nop dword [eax]
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 + 0x50], ecx
cmovae edx, ecx
and ecx, ebx
mov eax, edx
mov dword [esp + 0x2c], edx
and eax, edi
or ecx, eax
jne 0x4a791d
mov esi, dword [esi]
test esi, esi
je 0x4a7919
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x4a78a2
test eax, 0x80000
je 0x4a7899
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x4a789c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4a7880
jmp 0x4a7919
mov al, byte [esi]
cmp al, 0xa7
je 0x4a78ac
cmp al, 0xa9
jne 0x4a7919
mov edx, dword [esp + 0x68]
cmp dword [esi + 0x1c], edx
jne 0x4a7919
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x60]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x6c]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x50]
push eax
lea ecx, [ecx + 0x50]
call fcn.004a2700
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4a7915
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4a7979
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4a7975
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x4a7975
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4a7905
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
add esi, 0x14
mov edx, dword [esp + 0x30]
inc ecx
movzx eax, dx
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], esi
cmp ecx, eax
jl 0x4a7840
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x2c]
test edx, 0x1000
jne 0x4a7e0e
test edx, 0x100
je 0x4a7a45
mov dword [esp + 0x5c], 0
mov eax, 1
mov dword [esp + 0x50], 0
jmp 0x4a7a82
cmp ecx, edx
jge 0x4a7911
test bl, 0x82
je 0x4a7a0f
cmp word [esi + 0x20], 0
jl 0x4a7a0f
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0044d8d0
mov ebx, eax
test ebx, ebx
jne 0x4a79ab
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x400
je 0x4a79be
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4a79c4
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x4a79e7
test edi, edi
je 0x4a79da
test dword [edi + 4], 0x200
jne 0x4a79e5
mov ecx, esi
call fcn.0044d8d0
test eax, eax
jne 0x4a79f6
mov edx, edi
mov ecx, esi
call fcn.0044d8d0
test eax, eax
je 0x4a7911
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop dword [eax]
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x4a7a2c
test eax, eax
jne 0x4a7a42
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
or ebx, dword [esp + 0x50]
or edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jmp 0x4a7919
movzx ecx, byte [eax + 0x4fa530]
movzx eax, byte [esi + 0x4fa530]
sub ecx, eax
jne 0x4a7911
inc edx
jmp 0x4a7a00
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x4a7fec
test byte [ecx + 0x38], 4
jne 0x4a7fec
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
je 0x4a7a7d
mov byte [esp + 0x1c], 1
test edx, 0x8000
je 0x4a7a82
mov byte [esp + 0x1c], 0
xor cl, cl
movzx eax, ax
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x48], eax
test eax, eax
je 0x4a7e0e
xor edx, edx
mov dword [esp + 0x2c], edx
nop dword [eax]
movzx ebx, word [esi + 0x18]
mov byte [esp + 0x21], 1
cmp ecx, ebx
jge 0x4a7b2a
movzx eax, word [esi + 0x32]
cmp ecx, eax
jl 0x4a7b2a
mov edi, dword [esi + 0x38]
mov eax, dword [esp + 0x74]
mov esi, dword [edi + ecx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4a7af8
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4a7deb
test cl, 1
mov ecx, dword [esp + 0xc]
je 0x4a7b2a
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x4a7b2a
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4a7b20
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4a7b10
jmp 0x4a7b26
xor al, al
mov byte [esp + 0x21], al
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4a7b56
mov eax, dword [esi + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], edx
mov al, byte [ecx + eax]
and al, 1
mov byte [esp + 0x1b], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x4a7b62
jmp 0x4a7b5b
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x1c]
test al, al
je 0x4a7b99
test edx, edx
js 0x4a7b8a
cmp ecx, ebx
jl 0x4a7b99
mov eax, dword [esi + 0xc]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4a7b99
mov byte [esp + 0x1c], 0
jmp 0x4a7b99
xor ecx, ecx
movzx eax, al
cmp edx, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov bl, byte [esp + 0x21]
xor edi, edi
test bl, bl
je 0x4a7cd9
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x30]
movzx eax, cx
cmp edi, eax
jge 0x4a7cd9
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 + 0x14]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x4a7cc9
mov ecx, dword [esi]
test ecx, ecx
je 0x4a7cc9
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x4a7c17
test eax, 0x80000
je 0x4a7c0b
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
jmp 0x4a7c0e
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4a7bf2
jmp 0x4a7cc9
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x38]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp edx, 0xffffffff
jl 0x4a7c54
mov al, byte [ecx]
cmp al, 0xa7
je 0x4a7c3b
cmp al, 0xa9
jne 0x4a7cc9
mov eax, dword [esp + 0x68]
mov bl, bh
cmp dword [ecx + 0x1c], eax
jne 0x4a7cc9
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x4a7cc9
jmp 0x4a7c77
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
push dword [esp + 0x68]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 8]
call fcn.00457430
add esp, 4
test eax, eax
jne 0x4a7cc9
mov edx, dword [esp + 0x38]
cmp edx, 0xffffffff
je 0x4a7d1b
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0044d8d0
test eax, eax
jne 0x4a7c9c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [edx + esi]
cmp ecx, eax
jne 0x4a7d06
test ecx, ecx
jne 0x4a7d18
mov bl, bh
test ecx, ecx
je 0x4a7d1b
mov esi, dword [esp + 0x34]
add esi, 0x14
inc edi
mov dword [esp + 0x34], esi
test bl, bl
jne 0x4a7bb2
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a7cec
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4a7cf1
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x24], 0
je 0x4a7e0e
mov byte [esp + 0x1c], 1
jmp 0x4a7e19
movzx ecx, byte [ecx + 0x4fa530]
movzx eax, byte [eax + 0x4fa530]
sub ecx, eax
jne 0x4a7cbf
inc edx
jmp 0x4a7cb0
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
je 0x4a7d35
lea eax, [ebx + 1]
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x4a7d91
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
mov al, byte [ecx + eax*4 + 0x10]
and al, 1
cmp byte [esp + 0x23], 0
je 0x4a7d61
mov cl, byte [esp + 0x1b]
xor cl, byte [esp + 0x22]
cmp cl, al
jne 0x4a7cd9
jmp 0x4a7d91
xor al, byte [esp + 0x1b]
mov byte [esp + 0x22], al
je 0x4a7d8c
mov eax, dword [esp + 0x44]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x4a7db2
movzx eax, word [esi + 0x18]
cmp ebx, eax
jne 0x4a7cd9
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x38], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x24], 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 + 0x14], eax
or dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
add edx, 0x14
inc ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], ecx
cmp ecx, dword [esp + 0x48]
jge 0x4a7cf1
mov esi, dword [esp + 0x28]
jmp 0x4a7ab0
cmp byte [esp + 0x1c], 0
je 0x4a7f42
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x6c]
or eax, dword [esi + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
or eax, dword [esi + 0xc]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x34], eax
cmp word [esp + 0x30], ax
je 0x4a7f46
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x24], ebx
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 + 0x14]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4a7f21
mov ebx, dword [ebx]
test ebx, ebx
je 0x4a7e95
mov ecx, dword [esp + 0x40]
mov edx, ebx
lea ecx, [ecx + 0x1f0]
call fcn.004a1e70
mov ecx, edx
jmp 0x4a7ea6
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x4a7efd
mov dword [esp + 0x90], fcn.00450270
mov eax, 1
mov word [esp + 0xa0], ax
mov dword [esp + 0x94], 0x450110
mov dword [esp + 0xa4], 0
test ebx, ebx
je 0x4a7efd
mov edx, ebx
lea ecx, [esp + 0x8c]
call fcn.0044a1e0
cmp word [esp + 0xa0], 0
je 0x4a7f1d
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x2c]
or ecx, eax
jne 0x4a7f1d
or dword [esp + 0x14], esi
or dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
inc eax
add dword [esp + 0x24], 0x14
movzx ecx, bx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
cmp eax, ecx
jl 0x4a7e53
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
inc edx
mov dword [esp + 0x44], edx
test cl, cl
jne 0x4a7770
mov eax, dword [esp + 0x78]
cmp ebx, dword [esp + 0x7c]
jne 0x4a7f8e
cmp edi, eax
jne 0x4a7f8e
mov al, byte [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x20], 0
je 0x4a7f8e
and eax, 0x280
cmp eax, 0x80
jne 0x4a7f71
test cl, cl
jne 0x4a7ffe
mov ecx, dword [esp + 0x30]
movzx eax, cx
lea ebx, [eax - 1]
test ebx, ebx
jle 0x4a7fec
cmp ebx, 0x40
jge 0x4a7fc4
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 0x4a7fd5
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x14]
and esi, edi
cmp eax, ecx
jne 0x4a7fe7
cmp esi, edx
je 0x4a7ff5
dec ebx
test ebx, ebx
jg 0x4a7fa0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret