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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, ecx
xorps xmm0, xmm0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x98], ecx
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], dx
je 0x4f2909
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
je 0x4f2909
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x9c], eax
cmp eax, 0x3f
ja 0x4f28f2
movzx ebx, ax
xor ecx, ecx
xor esi, esi
mov edi, dword [esp + 0x74]
mov eax, ebx
movlpd qword [esp + 0x80], xmm0
bts ecx, eax
movlpd qword [esp + 0x48], xmm0
cmp eax, 0x20
mov byte [esp + 0x18], 1
mov dword [esp + 0x34], ebx
cmovae esi, ecx
mov dword [esp + 0x3c], edx
xor ecx, esi
mov dword [esp + 0xc], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, ecx
add ecx, 0xffffffff
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
adc esi, 0xffffffff
and eax, 0x800
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x90], eax
mov eax, edx
setne al
mov dword [esp + 0x10], esi
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
nop word [eax + eax]
mov eax, dword [esp + 0x58]
cmp edi, eax
ja 0x4f30ce
jb 0x4f29d8
cmp esi, dword [esp + 0x78]
jae 0x4f30d2
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x4f30ca
cmp dword [esp + 0x3c], 0
jle 0x4f2a07
mov ebx, dword [esp + 0x6c]
or ebx, dword [edx + 8]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x5c]
or ebx, dword [edx + 0xc]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jge 0x4f2a31
cmp word [esp + 0x90], 0
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x20], edx
jne 0x4f30b6
jmp 0x4f2a3c
mov edx, dword [esp + 0x94]
mov dword [esp + 0x20], edx
test dword [edx + 0x24], 0x400
jne 0x4f30c4
mov eax, dword [ebp + 0xc]
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4f2a60
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x2c], eax
test ebx, ebx
jle 0x4f2bbb
mov ebx, dword [esp + 0x38]
add ebx, 4
mov dword [esp + 0x28], ebx
nop
xor ecx, ecx
xor edx, edx
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, esi
mov eax, edx
mov dword [esp + 0x30], edx
and eax, edi
or ecx, eax
jne 0x4f2b9b
mov esi, dword [ebx]
test esi, esi
je 0x4f2ae1
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x4f2ae1
test eax, 0x40000
je 0x4f2ada
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x4f2add
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4f2ac1
cmp byte [esi], 0xa2
jne 0x4f2b97
mov edx, dword [esp + 0x60]
cmp dword [esi + 0x1c], edx
jne 0x4f2b97
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x64]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea ecx, [ecx + 0x50]
call fcn.004ee750
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4f2b93
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4f2b53
mov eax, dword [esp + 0x20]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x4f2b4f
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x4f2b4f
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4f2b43
cmp ecx, edx
jge 0x4f2b93
test bl, 0x82
je 0x4f2b79
cmp word [esi + 0x20], 0
jl 0x4f2b79
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push dword [edi]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.004af590
add esp, 4
test eax, eax
je 0x4f2b93
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
or esi, dword [esp + 0x48]
or edi, dword [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
jmp 0x4f2b9b
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x18
inc eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x34]
jl 0x4f2a90
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x4f2f7c
test eax, 0x100
je 0x4f2be7
mov dword [esp + 0x54], 0
mov ecx, 1
mov dword [esp + 0x48], 0
jmp 0x4f2c27
mov edx, dword [edx + 0x20]
mov dword [esp + 0x54], edx
test edx, edx
je 0x4f28f2
test byte [edx + 0x38], 4
jne 0x4f28f2
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x48], ecx
movzx ecx, word [edx + 0x34]
je 0x4f2c1e
mov byte [esp + 0x18], 1
test eax, 0x8000
je 0x4f2c23
mov byte [esp + 0x18], 0
mov edx, dword [esp + 0x20]
xor al, al
xor esi, esi
mov byte [esp + 0x1f], al
mov byte [esp + 0x1e], al
mov dword [esp + 0x2c], eax
movzx eax, cx
mov dword [esp + 0x24], esi
mov dword [esp + 0x70], eax
test eax, eax
jle 0x4f2f7c
mov dword [esp + 0x30], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x1d], 1
cmp esi, ebx
jge 0x4f2ccc
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x4f2ccc
mov edi, dword [edx + 0x30]
mov eax, dword [esp + 0x7c]
mov esi, dword [edi + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4f2c9c
mov eax, dword [esp + 0x18]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x18], cl
jmp 0x4f2f5f
test cl, 1
je 0x4f2cc8
mov ecx, dword [esp + 0x24]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x4f2cc8
inc ecx
lea ecx, [edi + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4f2cc2
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4f2cb2
jmp 0x4f2cc8
xor al, al
mov byte [esp + 0x1d], al
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4f2cf9
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x28], edx
mov cl, byte [esi + eax]
mov eax, dword [edi + 0xc]
and cl, 1
mov byte [esp + 0x17], cl
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x4f2d05
jmp 0x4f2cfe
mov byte [esp + 0x17], 0
or edx, 0xffffffff
mov dword [esp + 0x28], edx
cmp byte [esp + 0x18], 0
je 0x4f2d33
test edx, edx
js 0x4f2d33
cmp esi, ebx
jl 0x4f2d33
mov eax, dword [edi + 0xc]
mov ecx, edx
mov edx, dword [esp + 0x18]
add ecx, ecx
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x18], edx
mov bh, byte [esp + 0x1d]
xor edi, edi
test bh, bh
je 0x4f2e55
mov esi, dword [esp + 0x38]
add esi, 4
mov dword [esp + 0x40], esi
nop dword [eax]
cmp edi, dword [esp + 0x34]
jge 0x4f2e55
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 + 0x10]
and ecx, dword [esp + 0xc]
or edx, ecx
jne 0x4f2e45
mov ecx, dword [esi]
test ecx, ecx
je 0x4f2db0
nop word [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4f2db0
test eax, 0x40000
je 0x4f2da9
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4f2dac
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4f2d90
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x28]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x4f2de2
cmp byte [ecx], 0xa2
jne 0x4f2e45
mov eax, dword [esp + 0x60]
cmp dword [ecx + 0x1c], eax
jne 0x4f2e45
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x4f2e45
jmp 0x4f2e05
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
push dword [esp + 0x60]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.004b70d0
add esp, 4
test eax, eax
jne 0x4f2e45
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
je 0x4f2e83
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004af400
test eax, eax
jne 0x4f2e26
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x54]
mov bh, bl
mov esi, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.0047b390
test eax, eax
je 0x4f2e87
mov esi, dword [esp + 0x40]
add esi, 0x18
inc edi
mov dword [esp + 0x40], esi
test bh, bh
jne 0x4f2d50
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4f2e68
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4f2e6d
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x2c]
test al, al
je 0x4f2f7c
mov byte [esp + 0x18], 1
jmp 0x4f2f87
mov esi, dword [esp + 0x24]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x20]
je 0x4f2e9d
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x4f2f05
cmp byte [esp + 0x1f], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x38]
je 0x4f2eca
mov al, byte [ecx + eax*8 + 0x10]
mov cl, byte [esp + 0x17]
and al, 1
xor cl, byte [esp + 0x1e]
cmp cl, al
sete al
test al, al
je 0x4f2e55
jmp 0x4f2f05
mov dl, byte [ecx + eax*8 + 0x10]
and dl, 1
xor dl, byte [esp + 0x17]
mov byte [esp + 0x1e], dl
je 0x4f2f00
mov eax, dword [esp + 0x3c]
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 + 0x98]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x38]
lea eax, [edi + edi*2]
test byte [ecx + eax*8 + 0x10], 2
je 0x4f2f26
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x4f2e55
or dword [ebx + 0x24], 0x80000
cmp dword [esp + 0x28], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x2c]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x10], eax
or dword [esp + 0xc], ecx
mov esi, dword [esp + 0x24]
add dword [esp + 0x30], 0x18
inc esi
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x70]
jl 0x4f2c50
jmp 0x4f2e6d
cmp byte [esp + 0x18], 0
je 0x4f30a2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x34]
or eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
or eax, dword [edx + 0xc]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x40], eax
test ebx, ebx
jle 0x4f30aa
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0xc]
add ebx, 4
mov dword [esp + 0x2c], 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 + 0x10]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4f3086
mov ebx, dword [ebx]
test ebx, ebx
je 0x4f3004
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004edf10
mov ecx, edx
jmp 0x4f3015
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x4f3062
mov byte [esp + 0xb4], 1
mov dword [esp + 0xa4], fcn.004b18f0
mov dword [esp + 0xa8], 0x4b17c0
mov dword [esp + 0xb8], eax
test ebx, ebx
je 0x4f3062
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.004aca70
cmp byte [esp + 0xb4], 0
je 0x4f3082
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
not ecx
and ecx, dword [esp + 0x48]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x4f3082
or dword [esp + 0x10], esi
or dword [esp + 0xc], edi
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], 0x18
inc eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x34]
jl 0x4f2fc2
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc dword [esp + 0x3c]
test cl, cl
jne 0x4f29c0
jmp 0x4f30ca
cmp byte [edx + 0x1d], 0
jne 0x4f30d8
mov eax, dword [esp + 0x58]
cmp esi, dword [esp + 0x78]
jne 0x4f30f4
cmp edi, eax
jne 0x4f30f4
mov al, byte [esp + 0x9c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x4f3154
dec ebx
test ebx, ebx
jle 0x4f28f2
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
mov eax, ecx
adc edx, 0xffffffff
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4f312e
cmp esi, edx
je 0x4f313d
dec ebx
test ebx, ebx
jle 0x4f28f2
mov esi, dword [esp + 0x10]
jmp 0x4f3101
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret